Skip to content

Conversation

@joeljons
Copy link
Contributor

Json.pretty(openAPI) makes the extensions go under its own extension node. This results that when parsing it again they will be gone.

The variable prettyJson in my testcase has the value

{
  "openapi" : "3.0.0",
  "servers" : [ {
    "url" : "/"
  } ],
  "extensions" : {
    "x-some-extension" : "some-value"
  }
}

I would expect x-some-extensions to be directly under the root as it was in the initial json variable.

…nsion` node resulting in parsing it again they will be gone.
@webron webron merged commit b27d5e1 into swagger-api:2.0 Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants