Skip to content
#

json-schema

Here are 992 public repositories matching this topic...

fastapi
charlax
charlax commented Mar 25, 2020

Feature Request

It would be great to include API documentation. The Usage docs are great as a walkthrough, but when you want to go fast ("what is the name for the Field parameter for a constant value?"), API docs provide a faster answer.

Another use case: I want to inspect the __fields__ on a model, and had to read the code to get the attribute name I was looking for.

API docs would

agrishkan
agrishkan commented Jul 26, 2017

The current README file mentions options such as throwError and nestedErrors. Others, unfortunately, can be learned only by looking at the source code.

Please add the options and their descriptions to the README.

The others I found:

  • propertyName
  • base
  • skipAttributes
  • allowUnknownAttributes
  • rewrite
  • disableFormat
mausch
mausch commented Apr 2, 2020

The title might seem a bit vague but I don't know how to describe it any better tbh :-)

Anyway this is what happened: I got some 500 responses from the schema registry and all I could see in the logs was :

[2020-04-02 16:03:35,048] INFO 100.96.14.58 - - [02/Apr/2020:16:03:34 +0000] "PUT /config/some-topic-value HTTP/1.1" 500 69  502 (io.confluent.rest-utils.requests)

The logs di

tgirod
tgirod commented May 15, 2019

I want a resource with an array of a sub-resource, and everything properly checked for validity.

As a preamble, I found two ways of declaring a sub-resource and I fail to see the difference between them. First approach:

Fields: schema.Fields{
    "sub": {
        Schema: &subresource
    },
}

Second approach:

Fields: schema.Fields{
    "sub": {
        Valida
swagger-parser
Sweetchuck
Sweetchuck commented Nov 25, 2019

Currently the example value can have a different data structure that is defined in the schema and the swagger-cli validate doesn't rise an error.

example:
    foo:
        bar: a
        baz: b
type: object
properties:
    foo:
        type: integer
        format: int32
        default: 0

I think it would be very useful if the example value would be validated against

spectral
astavria4
astavria4 commented Apr 22, 2020

"Require calls will work only in Node.js, and will cause errors for anyone trying to use the ruleset in the browser. If your ruleset is definitely going to only be used in the context of NodeJS then using them is ok, but if you are distributing your rulesets to the public we recommend avoiding the use of require() to increase portability."

I have a extensions.js file that has functions I reuse

Improve this page

Add a description, image, and links to the json-schema topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the json-schema topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.