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

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

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


Subject: [OASIS Issue Tracker] (ODATA-856) Add annotations for Min/Max/Pattern


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

Michael Pizzo updated ODATA-856:
--------------------------------

    Proposal: 
Start a "Validation" vocabulary with the following:

    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm";  Namespace="Validation.1.0.0">

      <Term Name="Pattern" Type="Edm.String">
        <Annotation Term="OData.Description" String="The pattern that a string property or parameter must match."/>
      </Term>
      <Term Name="Minimum" Type="Edm.Decimal">
        <Annotation Term="OData.Description" String="Minimum value that a numeric property or parameter can have."/>
      </Term>
      <Term Name="Maximum" Type="Edm.Decimal">
        <Annotation Term="OData.Description" String="Maximum value that a numeric property or parameter can have."/>
      </Term>
  
    </Schema>

plus new term, "Validation.Exclusive", that can be applied to Validation.Minimum and Validataion.Maximum..

  was:
Start a "Validation" vocabulary with the following:

    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm";  Namespace="Validation.1.0.0">

      <Term Name="Pattern" Type="Edm.String">
        <Annotation Term="OData.Description" String="The pattern that a string property or parameter must match."/>
      </Term>
      <Term Name="Minimum" Type="Edm.Int64">
        <Annotation Term="OData.Description" String="Minimum value that an integer property or parameter can have."/>
      </Term>
      <Term Name="Maximum" Type="Edm.Int64">
        <Annotation Term="OData.Description" String="Maximum value that an integer property or parameter can have."/>
      </Term>
  
    </Schema>

https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/vocabularies/Org.OData.Validation.V1.xml?op=diff&rev=738


> Add annotations for Min/Max/Pattern
> -----------------------------------
>
>                 Key: ODATA-856
>                 URL: https://issues.oasis-open.org/browse/ODATA-856
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Bug
>          Components: OData CSDL, OData JSON CSDL, Vocabularies
>    Affects Versions: V4.0_ERRATA02
>         Environment: [Proposed]
>            Reporter: Michael Pizzo
>             Fix For: V4.01_WD01, V4.0_WD01
>
>
> These would map to equivalent concepts in JSON Schema.



--
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]