Open jsamr opened 6 years ago
oas-raml-coverter version 1.1.35
When inheriting from Foo, FooFromBar schema should have a required array with its field names in it.
Foo
FooFromBar
required
I believe it is related to #43 since the schemas afflicted with the bug are also wrongly typed string.
string
Full reproduction
types: Foo: type: object properties: foo1: type: number required: true BarFromFoo: type: Foo properties: bar1: type: string required: true
{ "components": { "schemas": { "Foo": { "type": "object", "properties": { "foo1": { "type": "number" } }, "required": [ "foo1" ] }, "BarFromFoo": { "allOf": [ { "$ref": "#/components/schemas/Foo" }, { "properties": { "bar1": { "type": "string" }, "bar2": { "type": "string" } }, "type": "object" } ], "required": [ "bar1", "bar2" ] } } } }
{ "components": { "schemas": { "Foo": { "type": "object", "properties": { "foo1": { "type": "number" } }, "required": [ "foo1" ] }, "BarFromFoo": { "allOf": [ { "$ref": "#/components/schemas/Foo" }, { "properties": { "bar1": { "type": "string" }, "bar2": { "type": "string" } }, "type": "object" } ], "type": "string" } } } }
Reproduction available here: https://github.com/jsamr/oas-raml-converter-missing-required
oas-raml-coverter version 1.1.35
When inheriting from
Foo
,FooFromBar
schema should have arequired
array with its field names in it.I believe it is related to #43 since the schemas afflicted with the bug are also wrongly typed
string
.Full reproduction
Raml definition
Expected output (oas3+json)
Observed output (oas3+json)