File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ auto find_anchors(const sourcemeta::core::JSON &schema,
76
76
const sourcemeta::core::URI identifier (schema.at (" $id" ).to_string ());
77
77
if (identifier.is_fragment_only ()) {
78
78
result.insert (
79
- {sourcemeta::core::JSON::String{identifier.fragment ().value ()},
79
+ {sourcemeta::core::JSON::String{
80
+ identifier.fragment ()
81
+ .value ()}, // NOLINT(bugprone-unchecked-optional-access):
82
+ // Check for optional is happening
83
+ // inside is_fragment_only()
80
84
AnchorType::Static});
81
85
}
82
86
}
@@ -91,7 +95,11 @@ auto find_anchors(const sourcemeta::core::JSON &schema,
91
95
const sourcemeta::core::URI identifier (schema.at (" id" ).to_string ());
92
96
if (identifier.is_fragment_only ()) {
93
97
result.insert (
94
- {sourcemeta::core::JSON::String{identifier.fragment ().value ()},
98
+ {sourcemeta::core::JSON::String{
99
+ identifier.fragment ()
100
+ .value ()}, // NOLINT(bugprone-unchecked-optional-access):
101
+ // Check for optional is happening
102
+ // inside is_fragment_only()
95
103
AnchorType::Static});
96
104
}
97
105
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ auto walk(const std::optional<sourcemeta::core::Pointer> &parent,
47
47
const auto current_base_dialect{
48
48
is_schema_resource
49
49
? sourcemeta::core::base_dialect (subschema, resolver, current_dialect)
50
- .value ( )
50
+ .value_or (base_dialect )
51
51
: base_dialect};
52
52
53
53
const auto vocabularies{sourcemeta::core::vocabularies (
You can’t perform that action at this time.
0 commit comments