Skip to content

Commit

Permalink
V3.1: Temporarily remove PathType invariant
Browse files Browse the repository at this point in the history
Since the PathType does not follow RFC 8089
anymore, but the `matches_xs_any_URI()`
method produces non-compliant XSD (see #317),
as a temporary fix to allow compliant XSD schema
generation, we remove the invariant completely.
  • Loading branch information
s-heppner committed Feb 22, 2024
1 parent a311624 commit 0396cf1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions aas_core_meta/v3_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,18 +1384,9 @@ class Content_type(Non_empty_XML_serializable_string, DBC):
"""


@invariant(
lambda self: matches_RFC_8089_path(self),
"The value must represent a valid file URI scheme according to RFC 8089.",
)
class Path_type(Identifier, DBC):
"""
Identifier
.. note::
Any string conformant to RFC8089 , the “file” URI scheme (for
relative and absolute file paths)
"""

pass
Expand Down

0 comments on commit 0396cf1

Please sign in to comment.