Skip to content

Inconsistency with some model optional type hints #3

@themattmorris

Description

@themattmorris

Hello! Thank you for all the awesome work you've done, our organization is enjoying using what you've built!

I just wanted to call out some of the type hints in datacontract_specification.model not matching default values. I'm not sure if these were code-generated or not, but I'd be open to submitting a PR if you're open to these changes.

Some examples include:

mustBeBetween: List[float | int] = None
mustNotBeBetween: List[float | int] = None

ref: str = pyd.Field(default=None, alias="$ref")

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions