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: [OASIS Issue Tracker] (TOSCA-282) Norm. Cap. Type "Endpoint" missing required=true in schema defn.


     [ https://issues.oasis-open.org/browse/TOSCA-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Rutkowski updated TOSCA-282:
------------------------------------

    Environment:     (was: The definition in the TOSCA v1.0 Simple Profile for "Endpoint" Capability type has "protocol" as being a required property; however the schema does not have the key "required" at all.  That is OK since it should default to true (per spec. rules for property definitions), but the schema should be explicit where possible to avoid ambiguities.

The schema today reads:
tosca.capabilities.Endpoint:
  derived_from: tosca.capabilities.Root
  properties:
    protocol:
      type: string
      default: tcp

we should add "required: true".

It is also interesting that this is a rare required property that also has a "default" in that even if a template does not include "protocol" as a required property it should not be an error since it has a "default" value of "tcp" supplied by schema.)

> Norm. Cap. Type "Endpoint" missing required=true in schema defn.
> ----------------------------------------------------------------
>
>                 Key: TOSCA-282
>                 URL: https://issues.oasis-open.org/browse/TOSCA-282
>             Project: OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC
>          Issue Type: Bug
>          Components: Profile-YAML
>    Affects Versions: V1.1_CSD04
>            Reporter: Matthew Rutkowski
>            Priority: Trivial
>




--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


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