Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# From issue-2565: nested nullable unions must preserve JSON payloads.
versions: [v1, v2, v3]
description: 'A nested oneOf inside an OpenAPI 3.1 nullable anyOf preserves its union payload.'
openapi: 3.1.0
subject:
anyOf:
- oneOf:
- $ref: '#/components/schemas/Cat'
- $ref: '#/components/schemas/Dog'
- type: 'null'
components:
Cat:
type: object
required: [meow]
properties:
meow: {type: string}
Dog:
type: object
required: [bark]
properties:
bark: {type: string}
samples:
- '{"meow": "purr"}'
- '{"bark": "woof"}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# yaml-language-server: $schema=../../../../../../configuration-schema.json
# Code generated by specgen from ../../shapes/nested_nullable_union_31.yaml. DO NOT EDIT.
package: matrixv1nestednullableunion31
output: nested_nullable_union_31.gen.go
generate:
models: true
client: true
std-http-server: true
strict-server: true
compatibility:
schema-merging-behavior: v1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading