pradishb
pradishb
Fixes #85
[Django ninja](https://github.com/vitalik/django-ninja) sets format to `ipvanyadress` for IP addresses. To reproduce: ```json { "openapi": "3.1.0", "info": { "title": "NinjaAPI", "version": "1.0.0", "description": "" }, "components": { "schemas": { "Proxy": {...
Fixes #83 Add parent_schema_id before anyOf schema to avoid conflict between anyOf schemas with same name. ```py class Schema2ValueObj(RootModel): """ None """ root: str | None class Schema1ValueObj(RootModel): """ None...
OpenAPI json to reproduce the bug. ```json { "openapi": "3.1.0", "info": { "title": "NinjaAPI", "version": "1.0.0", "description": "" }, "components": { "schemas": { "Schema1": { "properties": { "value": { "anyOf":...
[Django-ninja](https://django-ninja.dev/) sets the type of `float` data type as `number` in openapi and clientene renders `number` as `int` which causes pydantic validation error. openapi.json ```json { "openapi": "3.1.0", "info": {...
Example openapi.json ```json { "openapi": "3.1.0", "info": { "title": "NinjaAPI", "version": "1.0.0", "description": "" }, "paths": {}, "components": { "schemas": { "Pet": { "properties": { "name": { "anyOf": [ {...
fix #57
```py from pytheus.metrics import Gauge gauge = Gauge( "room_temperature", "temperature in the living room", ["room_name"] ) gauge.labels(room_name="bedroom").set(25) # pyright throws an error # Cannot access attribute "set" for class "_Metric"...
When following the docs, ``` settings-doc generate --class src.settings.AppSettings --output-format markdown Usage: settings-doc generate [OPTIONS] Try 'settings-doc generate --help' for help. Error: Invalid value for '--class' / '-c': Cannot read...