Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3.1: Change PathType to be of Type xs:anyURI #316

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions aas_core_meta/v3_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,17 +1385,20 @@ 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.",
lambda self: matches_xs_any_URI(self),
"The value must represent a valid URI scheme.",
)
class Path_type(Identifier, DBC):
"""
Identifier

.. note::

Any string conformant to RFC8089 , the “file” URI scheme (for
relative and absolute file paths)
[anyURI](https://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/datatypes.html#anyURI) supports a wide range of
internationalized resource identifiers can be specified when an anyURI is called for,
and still be understood as URIs per
[RFC 3986](https://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/datatypes.html#RFC3986)
and its successor(s).
"""

pass
Expand Down
Loading