-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(python): handle non union self referencing schema dependencies #4604
Conversation
generators/python/src/fern_python/generators/context/pydantic_generator_context_impl.py
Outdated
Show resolved
Hide resolved
generators/python/src/fern_python/generators/context/pydantic_generator_context_impl.py
Outdated
Show resolved
Hide resolved
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
13738502 | Triggered | Generic High Entropy Secret | c09e77f | generators/java/sdk/versions.yml | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
This PR introduces a number of changes to the codebase, including:
4.0.0-rc5
, with anirVersion
of53
and achangelogEntry
offix
.get_non_union_types_with_self_referencing_dependencies
, which returns a set of type IDs for non-union types with self-referencing dependencies.TestCaseWithExpectedResult
class to use a string type for thetest_case
field, and the addition of a new field,expected_result
, of typeVariableValue
.TestCaseResultWithStdout
, which has aresult
field of typeTestCaseResult
and astdout
field of typestr
.class to use a string type for the
stack` field.update_forward_refs
, which updates forward references for a given class.Changes
generators/python/sdk/versions.yml
file has been updated to include a new version,4.0.0-rc5
, with anirVersion
of53
and achangelogEntry
offix
.generators/python/src/fern_python/generators/context/pydantic_generator_context_impl.py
file has been modified to include a new function,get_non_union_types_with_self_referencing_dependencies
, which returns a set of type IDs for non-union types with self-referencing dependencies.generators/python/src/fern_python/generators/pydantic_model/fern_aware_pydantic_model.py
file has been updated to use the newget_non_union_types_with_self_referencing_dependencies
function in theis_referencing_circular_reference
check.seed/python-sdk/trace/src/seed/commons/types/test_case_with_expected_result.py
file has been modified to use a string type for thetest_case
field in theTestCaseWithExpectedResult
class, and to add a new field,expected_result
, of typeVariableValue
.seed/python-sdk/trace/src/seed/problem/types/create_problem_request.py
file has been updated to use a string type for theproblem_description
field in theCreateProblemRequest
class, and to add a new field,input_params
, of typetyping.List["VariableTypeAndName"]
.seed/python-sdk/trace/src/seed/problem/types/problem_info.py
file has been modified to use a string type for theproblem_description
field in theProblemInfo
class, and to add a new field,input_params
, of typetyping.List["VariableTypeAndName"]
.seed/python-sdk/trace/src/seed/submission/types/code_execution_update.py
file has been updated to use a string type for thetest_cases
field in theCodeExecutionUpdate_Graded
class.seed/python-sdk/trace/src/seed/submission/types/graded_response.py
file has been modified to use a string type for thetest_cases
field in theGradedResponse
class.seed/python-sdk/trace/src/seed/submission/types/stack_frame.py
file has been updated to use a string type for thescopes
field in theStackFrame
class.seed/python-sdk/trace/src/seed/submission/types/stack_information.py
file has been modified to use a string type for thetop_stack_frame
field in theStackInformation
class.seed/python-sdk/trace/src/seed/submission/types/submission_status_for_test_case.py
file has been updated to use a string type for theresult
field in theSubmissionStatusForTestCase_Graded
class, and to add a new field,value
, of typeTestCaseGrade
.seed/python-sdk/trace/src/seed/submission/types/submission_type_state.py
file has been modified to use a string type for thedefault_test_cases
andcustom_test_cases
fields in theSubmissionTypeState_Test
class.seed/python-sdk/trace/src/seed/submission/types/test_case_result_with_stdout.py
file has been updated to use a string type for theresult
field in theTestCaseResultWithStdout
class.seed/python-sdk/trace/src/seed/submission/types/test_submission_state.py
file has been modified to use a string type for thedefault_test_cases
andcustom_test_cases
fields in theTestSubmissionState
class.seed/python-sdk/trace/src/seed/submission/types/test_submission_status_v_2.py
file has been updated to use a string type for theproblem_info
field in theTestSubmissionStatusV2
class.seed/python-sdk/trace/src/seed/submission/types/trace_response.py
file has been modified to use a string type for thestack
field in theTraceResponse
class.seed/python-sdk/trace/src/seed/submission/types/trace_response_v_2.py
file has been updated to use a string type for thestack
field in theTraceResponseV2
class.seed/python-sdk/trace/src/seed/submission/types/trace_responses_page.py
file has been modified to use a string type for thetrace_responses
field in theTraceResponsesPage
class.seed/python-sdk/trace/src/seed/submission/types/trace_responses_page_v_2.py
file has been updated to use a string type for thetrace_responses
field in theTraceResponsesPageV2
class.seed/python-sdk/trace/src/seed/submission/types/traced_test_case.py
file has been modified to use a string type for theresult
field in theTracedTestCase
class.</co: 2