OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tosca message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: FW: [oasis-open/tosca-community-contributions] Short notation for entry_schema and key_schema (Issue #102)


Unless there are any objections, we will incorporate this recommendation from Philippe in the next version of the spec.

 

Thanks,

 

Chris

 

From: Philippe Merle <notifications@github.com>
Sent: Tuesday, May 10, 2022 4:31 AM
To: oasis-open/tosca-community-contributions <tosca-community-contributions@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [oasis-open/tosca-community-contributions] Short notation for entry_schema and key_schema (Issue #102)

 

Issue Description

Following illustrates the short notation for entry_schema and key_schema

tosca_definitions_version: tosca_simple_yaml_1_3
data_types:
  DT:
    properties:
      p-list:
        type: list
        entry_schema: integer
      p-map:
        type: map
        key_schema: integer
        entry_schema: integer

This template is valid with Ubicity Validator, Puccini, and Cloudnet TOSCA toolbox at least.

However, this short notation is not explicitly specified into Section 3.6.9 Schema Definition of TOSCA 1.3 and Section 4.4.5 Schema definition of TOSCA 2.0 csd03.

Proposed Resolution

Add the following at the beginning of Section 4.4.5.2 of TOSCA 2.0.

4.4.5.2.1 Short notation
 
The following single-line grammar may be used when only the schema type needs to be declared:
 
<schema_definition>: <schema_type>
 
4.4.5.2.2 Extended notation

Replace

Schema definitions have the following grammar:

by

The following multi-line grammar may be used when additional information on the schema definition is needed:

â
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Message ID: <oasis-open/tosca-community-contributions/issues/102@github.com>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]