Skip to content
Merged
Show file tree
Hide file tree
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
154 changes: 84 additions & 70 deletions dev_scripts/codegen/meta_model.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev_scripts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ classifiers = [
]
requires-python = ">=3.10"
dependencies = [
"aas-core-codegen@git+https://github.com/aas-core-works/aas-core-codegen@754e1676",
"aas-core-codegen@git+https://github.com/aas-core-works/aas-core-codegen@9db4f51",
"requests>=2.32.5",
]

Expand Down
2 changes: 1 addition & 1 deletion include/aas_core/aas_3_0/pattern.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extern const std::vector<

extern const std::vector<
std::unique_ptr<revm::Instruction>
> kMatchesRfc8089PathProgram;
> kMatchesRfc2396Program;

extern const std::vector<
std::unique_ptr<revm::Instruction>
Expand Down
10 changes: 7 additions & 3 deletions include/aas_core/aas_3_0/verification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,15 @@ bool MatchesMimeType(
const std::wstring& text
);

/// \brief Check that \p text is a path conforming to the pattern of RFC 8089.
/// \brief Check that \p text matches to the URI pattern defined in RFC 2396
///
/// The definition has been taken from:
/// https://datatracker.ietf.org/doc/html/rfc8089
bool MatchesRfc8089Path(
/// https://datatracker.ietf.org/doc/html/rfc2396
///
/// Note that RFX 2396 alone is not enough for specifying `xs:anyURI` for
/// XSD version 1.0, as that specifies URI together with the amendment of
/// RFC 2732.
bool MatchesRfc2396(
const std::wstring& text
);

Expand Down
Loading