Skip to content

Commit

Permalink
add inline default
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleader committed Feb 19, 2024
1 parent 0eba29f commit fa78446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion schema/oneof_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ func Test_OneOfString_ConstructorBypass(t *testing.T) {
"required": true,
"type": map[string]any{
"discriminator_field_name": "_type",
"discriminator_inlined": false,
"type_id": "one_of_string",
"types": map[string]any{
"fullname": map[string]any{
Expand Down
4 changes: 2 additions & 2 deletions schema/schema_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ var basicObjects = []*ObjectSchema{
nil,
nil,
nil,
PointerTo("false"),
nil,
[]string{"\"inlined\""},
),
"discriminator_field_name": NewPropertySchema(
NewStringSchema(nil, nil, nil),
Expand Down Expand Up @@ -604,8 +604,8 @@ var basicObjects = []*ObjectSchema{
nil,
nil,
nil,
PointerTo("false"),
nil,
[]string{"\"inlined\""},
),
"discriminator_field_name": NewPropertySchema(
NewStringSchema(nil, nil, nil),
Expand Down

0 comments on commit fa78446

Please sign in to comment.