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.

handling a property of Anything

See original GitHub issue

hi.

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:closed
  • Created 9 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ralfhandlcommented, Aug 4, 2016

My assumption would have been that an empty schema is “anything”.

1reaction
zjarkovcommented, Jul 29, 2016

Hurray, thanks! It’s friday afternoon => time to stop thinking and go home…

Read more comments on GitHub >

github_iconTop 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 >

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