mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #643] [MERGED] Support edge case: first object, next an array. #1012
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/643
Author: @leolplex
Created: 10/6/2021
Status: ✅ Merged
Merged: 10/6/2021
Merged by: @StefH
Base:
master← Head:master📝 Commits (1)
0b8537bSupport edge case: first object, next an array.📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
src/WireMock.Net.OpenApiParser/Mappers/OpenApiPathsMapper.cs(+5 -1)📄 Description
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"
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.