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

Error: collectionFormat:pipes is no longer supported except for in:query parameters #2758

Closed
Geogboe opened this issue Dec 5, 2017 · 4 comments
Assignees

Comments

@Geogboe
Copy link

Geogboe commented Dec 5, 2017

Overview

I call Autorest to validate my spec like this:
autorest.cmd --input-file=swagger.json

Which returns this error:

FATAL: openapi-document/openapi-document-converter - FAILED
FATAL: Error: collectionFormat:pipes is no longer supported except for in:query parameters
Process() Cancelled due to exception : collectionFormat:pipes is no longer supported except for in:query parameters
  Error: collectionFormat:pipes is no longer supported except for in:query parameters

The context of this error appears to be this parameter block:

            "name": "views",
            "in": "formData",
            "description": "My description.",
            "required": false,
            "type": "array",
            "collectionFormat": "pipes",
            "items": {
              "type": "string",
              "enum": [
                "External",
                "Internal"
              ]

I'm using formData and the docs state this CollectionFormat: pipes supports in:query and in:formData.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md

Yet, why is autorest saying that CollectionFormat:pipes only supports in:query?

Background info:

  • Windows 10.0.17025
  • Autorest 2.0.4215
  • npm 5.3.0
  • node v8.2.1

Thanks!

@olydis olydis self-assigned this Dec 6, 2017
@olydis
Copy link
Contributor

olydis commented Dec 6, 2017

Wat, sorry about that! I'm on it, fix will be published tomorrow

@Geogboe
Copy link
Author

Geogboe commented Dec 6, 2017

@olydis Wow quick response! Thanks and let me know if I can help test or anything!

@olydis
Copy link
Contributor

olydis commented Dec 7, 2017

@Geogboe should be fixed now, you can run autorest --reset to make sure the recent generator is downloaded. 🙂 Let me know if you encounter any issues!

@Geogboe
Copy link
Author

Geogboe commented Dec 7, 2017

@olydis Awesome! Seems to be working!

AutoRest code generation utility [version: 2.0.4215]
(C) 2017 Microsoft Corporation.
https://aka.ms/autorest
   Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.2.45)
   Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.42)

@olydis olydis closed this as completed Dec 7, 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

No branches or pull requests

2 participants