Skip to content
#

json-schema

Here are 1,000 public repositories matching this topic...

fastapi
jonathanunderwood
jonathanunderwood commented Dec 22, 2019

Describe the bug

Startup event handlers for sub-applications never trigger.

To Reproduce

from fastapi import FastAPI


sub_app = FastAPI(openapi_prefix="/subapp")


@sub_app.on_event("startup")
async def sub_app_startup():
    print("++++ Sub-app startup event")  # Never fires


app = FastAPI()


@app.on_event("startup")
async def app_startup():
    prin
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
nulltoken
nulltoken commented Apr 16, 2020

Chore summary
Provide some guidance to the custom function writer with regards to errors

Tasks

  • Add a section to functions.md

From https://github.com/stoplightio/spectral/pull/1058/files#r408418822

@P0lip What's the effect from throwing from within a function? Does the whole process crash down? Do we get a special kind of result or a console log?

We'd get a console.l

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.