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: Re: Proposal: make "entry_schema" keyword optional


Perhaps worth sharing another hacky way to achieve an "any" type:

data_types:
 Any:
  description: >-
ÂÂÂÂÂ Only one of the properties should be set!
  properties:
   boolean:
    type: boolean
    required: false
   integer:
    type: integer
    required: false
   float:
    type: float
    required: false
   string:
    type: string
    required: false
   list:
    type: list
    entry_schema: Any
    required: false
   map:
    type: map
    entry_schema: Any
    required: false
   null:
    type: null
    required: false


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