Skip to content

Commit

Permalink
Service and SW component prop, align docs usnistgov#1913
Browse files Browse the repository at this point in the history
This adds the prop constraint as requested in usnistgov#1913 feedback. Also align
enum doc strings to be consistent in the props for future refactoring
entity file refactoring in the following commit.
  • Loading branch information
aj-stein-gsa committed Nov 19, 2024
1 parent faebade commit 76c7fb6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/metaschema/oscal_implementation-common_metaschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,17 @@
<enum value="isa-title">Title of the Interconnection Security Agreement (ISA).</enum>
<enum value="isa-date">Date of the Interconnection Security Agreement (ISA).</enum>
<enum value="isa-remote-system-name">The name of the remote interconnected system.</enum>
<enum value="ipv4-address">An Internet Protocol Version 4 interconnection address.</enum>
<enum value="ipv6-address">An Internet Protocol Version 6 interconnection address.</enum>
<enum value="direction">The direction of network connectivity for the interconnection address.</enum>
<enum value="uri">A Uniform Resource Identifier (URI) for the interconnection address.</enum>
<enum value="ipv4-address">The Internet Protocol Version 4 address is for an interconnection, service, or software component.</enum>
<enum value="ipv6-address">The Internet Protocol Version 6 address is for an interconnection, service, or software component.</enum>
<enum value="direction">The direction categorizes the network connectivity of an interconnection, service, or software component.</enum>
<enum value="uri">A Uniform Resource Identifier (URI) is for an interconnection, service, or software component.</enum>
</allowed-values>
<allowed-values target="[@type=('service', 'software')]/prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal')]/@name">
<enum value="ipv4-address">The Internet Protocol Version 4 address is for an interconnection, service, or software component.</enum>
<enum value="ipv6-address">The Internet Protocol Version 6 address is for an interconnection, service, or software component.</enum>
<enum value="direction">The direction categorizes the network connectivity of an interconnection, service, or software component.</enum>
<enum value="uri">A Uniform Resource Identifier (URI) is for an interconnection, service, or software component.</enum>
</allowed-values>
<allowed-values target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name=('ipv4-address','ipv6-address')]/@class">
<enum value="local">The identified IP address is for this system.</enum>
<enum value="remote">The identified IP address is for the remote system to which this system is connected.</enum>
Expand All @@ -214,6 +220,7 @@
<matches target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='isa-date']/@value" datatype="date-time"/>
<matches target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='ipv4-address']/@value" datatype="ip-v4-address" />
<matches target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='ipv6-address']/@value" datatype="ip-v6-address" />
<matches target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='uri']/@value" datatype="uri" />
<allowed-values target="prop[has-oscal-namespace('http://csrc.nist.gov/ns/oscal') and @name='direction']/@value">
<enum value="incoming">Data from the remote system flows into this system.</enum>
<enum value="outgoing">Data from this system flows to the remote system.</enum>
Expand Down

0 comments on commit 76c7fb6

Please sign in to comment.