question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reponse's schema is a property?

See original GitHub issue

According to the Swagger spec, the Response Object (io.swagger.models.Response) has a schema property that contains a Schema Object (io.swagger.models.Model). However, in swagger-core, Response#getSchema() returns a Property, not a Model. Is that intended or is the implementation incomplete?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fehguycommented, Dec 21, 2016

This will change with the 3.0 specification, as parameters, models, and properties will essentially be the same.

0reactions
hgwoodcommented, Jul 30, 2015

Yes I would soon run into #1202 but I would be able to read top-level properties.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema in a response allows additional properties
The schema you have defined allows additional properties, either intentionally or unintentionally. In JSON, by default, any object can also accept additional ...
Read more >
OpenAPI Specification - Version 3.0.3 - Swagger
The OpenAPI Specification defines a standard interface to RESTful APIs which allows both humans and computers to understand service capabilities without ...
Read more >
Step 5: Response example and schema (API reference tutorial)
The response schema documents the response in a more comprehensive, general way, listing each property that could possibly be returned, ...
Read more >
object — Understanding JSON Schema 2020-12 documentation
The value of properties is an object, where each key is the name of a property and each value is a schema used...
Read more >
Enforce response contents with the - Redocly
Single response containing one property ; Multiple responses containing one property; Multiple responses containing multiple properties. Let's get started!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found