Closed klh closed 8 years ago
I'm not exactly sure what the issue is here.
If you navigate to #/definitions/System.Object
, you'll obtain the following JSON Schema:
{
required: ['']
type: 'object',
properties: {}
}
which would be rendered as a JSON Schema Faker Dynamic Value (JSF), with the generated value {}
.
If you want to have a required username and password, you should edit the JSON Schema to look like
definitions:
...
System.Object:
required: [ 'username', 'password' ]
type: object
properties:
username:
type: string
password:
type: string
@klh Do you still have any issues with importing swagger files into Paw ?
@JonathanMontane I'm not sure if I'm encountering the exact same issue but for me, the imported Swagger definitions look like this:
What information can I give you to help debug this? A sample definition looks like this:
ErrorResponse:
type: object
properties:
error:
$ref: "#/definitions/Error"
required:
- error
Probably found the bug, I'm looking into fixing it right now.
fixed.
when using swagger references such as:
see $ref: '#/definitions/System.Object' that links to:
is not correctly rendered as object {username:'',password:''}