oasis-tcs / openc2-oc2ls

OASIS OpenC2 TC: GitHub repository used to propose and track changes to the OpenC2 Language Specification as new working draft level revisions are created and the associated CSDs mature
https://github.com/oasis-tcs/openc2-oc2ls
Other
15 stars 19 forks source link

Schema requirements #361

Closed davaya closed 8 months ago

davaya commented 4 years ago

The OpenC2 Language Specification and Actuator Profiles each previously included a Schema annex containing the formal syntax for that specification.

OpenC2 Producer and Consumer products may support one or more profiles, and may support none, some, or all of the optional fields defined in those specifications, and must support all required fields. OpenC2 defined a "query features schema" command and response to allow Producers to discover the specific profiles and optional fields supported by a particular Consumer. A process for combining schemas from the LS and one or more profiles is described in https://github.com/oasis-open/openc2-custom-aps/tree/master/Schema-Template.

The schema annexes and the schema query were removed prior to publication of v1.0, and there is now discussion of restoring them, including what schema formats should be published with the specifications and/or returned in response to a query. The decision should be based on requirements:

The candidate schema formats are:

sparrell commented 4 years ago

I see no need to ever to XML. I could change my mind if someone has an actual need for it. I am against doing it 'for completeness'. I don't think we should make more options than necessary.

sparrell commented 4 years ago

I do see the need for CBOR. If we agree to include CBOR, how does that affect?

davaya commented 4 years ago

If we start modeling data objects such as SBOMs instead of carrying them as opaque blobs, XML will be required. I agree that we need a use case to justify it.

dlemire60 commented 2 years ago

discussed at triage, next version issue, create non-normative appendix to LS describing use of JADN create JADN schema for LS first, once that's published as CS can begin adding to APs.

dlemire60 commented 2 years ago

Proposed outline for non-normative Appendix:

dlemire60 commented 1 year ago

The draft appendix from PR #408 still has two sections that need to be populated / completed:

D.3.3 Translation To JSON Schema

TBD: JADN translation to JSON schema

D.4 Additional Information

TBD: Reference to, description of OpenC2 JADN schema external artifact

dlemire60 commented 8 months ago

I believe this issue is OBE. PR #428 addresses many of the concerns and the addition of a JADN Schema for LS v2.0 should complete the process. Recommend closing.

dlemire60 commented 8 months ago

This issue is now closed, per consensus at the 10 January 2024 working meeting.