Skip to content

Commit

Permalink
rm code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Apr 29, 2024
1 parent 89ba60c commit 3e9ca0e
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/arcaflow_plugin_sdk/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2593,14 +2593,12 @@ class OneOfSchema(_JSONSchemaGenerator, _OpenAPIGenerator):
" objects' schema"
),
]
oneof_type: typing.Annotated[str, _name("One Of Type Name")]
oneof_type: typing.Annotated[str, _name("One Of Type Schema Name")]
discriminator_field_name: typing.Annotated[
str,
_name("Discriminator field name"),
_description(
"Name of the field used to discriminate between possible values."
" If this field ispresent on any of the component objects it must"
" also be an int."
),
] = "_type"

Expand Down Expand Up @@ -2812,23 +2810,6 @@ class OneOfStringSchema(OneOfSchema):
""" # noqa: E501

types: Dict[str, typing.Annotated[_OBJECT_LIKE, discriminator("type_id")]]
discriminator_inlined: typing.Annotated[
bool,
_name("Discriminator field inlined"),
_description(
"True if the discriminator is a field in each schema of the"
" underlying objects"
),
]
discriminator_field_name: typing.Annotated[
str,
_name("Discriminator field name"),
_description(
"Name of the field whose value is used to discriminate between"
" possible subobject types. If this field is present in any of the"
" subobjects it must have a type of string."
),
] = "_type"
oneof_type: typing.Annotated[str, _name("One Of String Type Name")] = (
"_discriminated_string_"
)
Expand Down

0 comments on commit 3e9ca0e

Please sign in to comment.