gb-libs / pydantic-geojson

Pydantic validation for GeoJson
MIT License
25 stars 6 forks source link

openapi.json #21

Closed anthonymckale-6point6 closed 1 year ago

anthonymckale-6point6 commented 1 year ago

was having issues with the openapi.json verification failing

think it's due to _base.py

gte = ge lte = le

also updating open api version to 3.1.0 so const is supported was required

anthonymckale-6point6 commented 1 year ago

verified fix with

RUN npm install @redocly/cli -g 
curl -o xxx.json "http://${FASTAPI_HOST}/openapi.json"
redocly lint xxx.json

also needed to upgrade my fastapi to output 3.1.0 openapi

app = FastAPI(
    ...
)
app.openapi_version = "3.1.0"