Display attribute not displaying in Swagger - EF Core API Core

2018-10-04 Thread James Evans
Our current production API is ASP.Net Web API 2 with EF 6. We have custom DTO models and we use the display attribute as follows: [Display(Description = "Some description of this data item")] and the description is showing up just fine in the generated documentation page. We are migrating

Command line codegen client fails, but gui editor succeeds?

2017-06-23 Thread James
Hello, I'm trying to generate a client api for python from my yaml spec. I'm using the latest docker images for both the command line and gui editor. For my spec, the command line fails but the gui editor succeeds in generating a client api. I can generate clients from example yaml specs wit

Example Use of Python Client SDK?

2017-06-15 Thread James
Hey, so I'm happy with my python/swagger connexion server, but I can't seem to get the python client sdk's to work. I keep getting 404 errors. Documentation on using/setting up client sdk's generated from swagger seems to be missing unless I'm looking in the wrong place. Can anyone direct me

Springfox implementation - Soft-configuring data models for rest Api...

2017-05-29 Thread James Christopher Eckhardt
We are currently using the springfox SWAGGER implementation (it's fantastic by the way!) and are looking to expose a REST api which accepts and returns soft-configured JSON objects - xml too, but for now lets focus on the JSON. The specification for these objects may change per installation an

Unsupported Media Type in editor

2017-04-18 Thread Kevin James Bates
When using the editor I've set the content type as 'application/vnd.api+json' using the sample below. But when I test it in the editor I am returned an error '451 Unsupported Media Type' If I look at the raw tab the content type is reported as 'Content-Type: application/vnd.api+json; charset=utf

Re: how to configure swagger-ui to use authentication to retrieve the swagger document itself

2017-04-14 Thread James Ahlborn
thanks! despite my best efforts on google, i couldn't manage to track that down. On Friday, April 14, 2017 at 2:05:38 AM UTC-4, Ron wrote: > > There’s an open ticket for it - > https://github.com/swagger-api/swagger-ui/issues/2793. > > > > > > *From:

how to configure swagger-ui to use authentication to retrieve the swagger document itself

2017-04-13 Thread James Ahlborn
i'm wading through the swagger-ui documentation and what i can find on google, and most of the information looks to be outdated compared to the current version of swagger-ui. anyway, by basic question is whether or not i can easily add the ability to specify authentication information in order

Swagger editor codegen update? Windows not supported?

2017-01-17 Thread James
Hey, The swagger editor seems to have updated its server codegen tool over the weekend (at least for Python) and I can't run the generated servers on windows anymore. I think a linux environment is assumed now. I keep getting the following error: python-flask-se

Re: Is there a Java library for request/response validation that is framework agnostic?

2016-09-26 Thread James Navin
to look at it. Finally, any objection to me bumping up to the latest WireMock version > while I'm at it? None at all. Cheers, James On Monday, September 26, 2016 at 11:47:56 PM UTC+10, Tom Akehurst wrote: > > Thanks, this is exactly the kind of thing I'm looking for. Wish I

Re: Server validation of body schemas

2016-09-26 Thread James Navin
Great idea. I just opened a PR. Cheers. On Tue, Sep 27, 2016 at 2:28 AM, tony tam wrote: > Thanks for sharing this, James. Perhaps you can send a PR to the > swagger.io site so we can add it in the OSS tools section? > > On Sep 25, 2016, at 5:08 PM, James Navin wrote: > >

Re: Server validation of body schemas

2016-09-25 Thread James Navin
You could look at https://bitbucket.org/atlassian/swagger-request-validator (disclaimer - I wrote it) It uses the JSON Schema validator to handle the schema validation, and has adapters for some common libraries. If there's something missing that you need feel free to raise a PR or a ticket in

Re: Is there a Java library for request/response validation that is framework agnostic?

2016-09-25 Thread James Navin
I faced a similar situation and ended up writing my own. Its open source and available at https://bitbucket.org/atlassian/swagger-request-validator Its framework agnostic and has adapters for WireMock (as well as Rest Assured and Pact). Feel free to raise any issues you find on the issue tracke

Swift code generator status?

2016-08-24 Thread James Green
off on the best path. My understanding is that the current generator does not support Swift 3.0, is that correct? I have also seen discussions about alternative Swift generators because there are aspects of the current generator which could be better, is that correct also? Many thanks, James