Add annotations for Min/Max/Pattern

    • Hide

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

      Show
      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..
    • Show
      https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/vocabularies/Org.OData.Validation.V1.xml?rev=744

      These would map to equivalent concepts in JSON Schema.

            Assignee:
            Unassigned
            Reporter:
            Michael Pizzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: