handling a property of Anything
See original GitHub issuehi.
With clojure, it’s possible to use Any
as a field type. How should this be modeled for Swagger?
a pure clojure Schema looks like:
(def Pizza {:id Long
:name String
:meta Any}
valid values for Pizza are for example:
{:id 1 :name "kikka" :meta 1}
{:id 2 :name "kukka" :meta nil}
{:id 3 :name "kakka" :meta {:more "stuff" :even {:more "here"}}}
for documentation purposes, it would be great to be able to say for return values “there will be something coming behind property :meta”, but don’t want to break the swagger-gen-clients if there is no way they can understand it.
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Properties - Stanford Encyclopedia of Philosophy
Properties are those entities that can be predicated of things or, in other words, attributed to them. Thus, properties are often called ...
Read more >Property | Internet Encyclopedia of Philosophy
The right to manage: to be able to decide who is allowed to use the thing and how they may do so; The...
Read more >Estate plan | Leaving your house to a loved one | Fidelity
There are many ways to transfer your house, including by will, revocable trust, transfer on death, and deed, among other options.
Read more >Probate: The Process for Dealing with Property and Debts ...
What is probate? Probate is a legal process that transfers a person's property after they die. This process also makes sure that the...
Read more >13 Tips and Best Practices for Real Estate Customer Service
Whether it's buying a house, selling one, renovating, building, or managing a property, each different facet of real estate comes with its ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My assumption would have been that an empty schema is “anything”.
Hurray, thanks! It’s friday afternoon => time to stop thinking and go home…