feat(samples): add support for proper schema merging (#8910)
This change is specific to JSON Schema 2020-12 and OpenAPI 3.1.0. Refs #8577
This commit is contained in:
@@ -1154,7 +1154,7 @@ describe("sampleFromSchema", () => {
|
||||
expect(sampleFromSchema(definition)).toEqual(expected)
|
||||
})
|
||||
|
||||
it("should lift items with anyOf", () => {
|
||||
it("should merge items with anyOf", () => {
|
||||
const definition = {
|
||||
type: "array",
|
||||
anyOf: [
|
||||
@@ -1172,7 +1172,7 @@ describe("sampleFromSchema", () => {
|
||||
expect(sampleFromSchema(definition)).toEqual(expected)
|
||||
})
|
||||
|
||||
it("should lift items with oneOf", () => {
|
||||
it("should merge items with oneOf", () => {
|
||||
const definition = {
|
||||
type: "array",
|
||||
oneOf: [
|
||||
|
||||
Reference in New Issue
Block a user