Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support edge case: first object, next an array. #643

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Support edge case: first object, next an array. #643

merged 1 commit into from
Oct 6, 2021

Conversation

leolplex
Copy link
Contributor

@leolplex leolplex commented Oct 6, 2021

Hi,

I'm opening this PR 'cause I want to improve the example generation. The edge case is: I have a definition in my openapi file with a property that do reference to an another of type object and it has a reference to other of type array, below an exmaple:

definitions:
Definition1:
type: object
properties:
mydata:
type: "array"
items:
$ref: "#definitions/Definition2"

Definition2:
type: object
properties:
property1:
type: "string"
format: "string"

@StefH StefH added the feature label Oct 6, 2021
@StefH StefH merged commit 34083d8 into WireMock-Net:master Oct 6, 2021
@StefH
Copy link
Collaborator

StefH commented Oct 6, 2021

@leolplex Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants