Skip to content

Commit

Permalink
expand example test
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbooms committed Apr 11, 2024
1 parent 918ebb1 commit 65495e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/resources/examples/oneOfMarkerInterface/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ info:
paths:
components:
schemas:
Container:
type: object
properties:
state:
$ref: '#/components/schemas/State'

State:
oneOf:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
package examples.oneOfMarkerInterface.models

import com.fasterxml.jackson.`annotation`.JsonProperty
import javax.validation.Valid
import javax.validation.constraints.NotNull
import kotlin.String

public data class Container(
@param:JsonProperty("state")
@get:JsonProperty("state")
@get:Valid
public val state: State? = null,
)

public sealed interface State

public data class StateA(
Expand Down

0 comments on commit 65495e2

Please sign in to comment.