-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Root cause I believe is: python-attrs/cattrs#321
Repro:
import json
from uapi.openapi import SchemaBuilder, IntegerSchema
from uapi.attrschema import build_attrs_schema, Schema
from uapi.openapi import converter as SCHEMA_CONVERTER
import attrs
@attrs.define
class Thing:
foo: int
schema = build_attrs_schema(Thing, SchemaBuilder())
# FAILS
assert SCHEMA_CONVERTER.unstructure(schema.properties['foo'], IntegerSchema)['type'] == "integer"Metadata
Metadata
Assignees
Labels
No labels