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

Definitions are created containing / characters - leading to unresolvable $refs #26

Open
MikeRalphson opened this issue Sep 25, 2017 · 4 comments

Comments

@MikeRalphson
Copy link

Input URL: http://docs.shipstation.apiary.io/api-description-document

Contains headers with multiple HTTP verbs?

## Get/Delete Order [/orders/{orderId}]

Generated swagger (excerpts):

          "parameters": [
            {
              "name": "storeId",
              "in": "path",
              "description": "A unique ID generated by ShipStation and assigned to each store.",
              "required": true,
              "type": "number"
            },
            {
              "name": "body",
              "in": "body",
              "schema": {
                "$ref": "#/definitions/Get/Update StoreModel"
              }
            }
          ]

The output models/definitions also appear to be blank:

    "definitions": {
      "Get/Delete Order": {},
      "Get/Delete OrderModel": {},
      ...
    }

Refs APIs-guru/openapi-directory#121

@kminami
Copy link
Owner

kminami commented Sep 28, 2017

Fix escaping in 0.9.1.
The output definitions are blank because input includes no normative sections (Schema/Attributes). Body sections are just examples.

@MikeRalphson
Copy link
Author

Many thanks @kminami - I spotted that one of the forks of this repo might be working on generating schemas from examples...

@kminami
Copy link
Owner

kminami commented Sep 28, 2017

Oh, it's cool!
Will try to merge it.

@kminami
Copy link
Owner

kminami commented Oct 29, 2017

Merged the branch at 1.0.0, but this doesn't affect to Model Bodies like above input.

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

No branches or pull requests

2 participants