Skip to content

Fix / Workaround to replace type Any in partially overwritten properties #90

@simontaurus

Description

@simontaurus

Background: koxudaxi/datamodel-code-generator#2087

Occures in all subclasses of Item, e.g.

rdf_type: Optional[Any] = "rdf:Statement"

Idea:

  • regex replacement at least of type: Optional[Any] = ["Category:OSW..."] with type: Optional[List[str]] = ["Category:OSW..."]
  • explicite repeating "type": "string" in subschemas

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