Skip to content

Commit

Permalink
Use really simple identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Oct 24, 2024
1 parent 18b4c1a commit a3b1e2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions odata-csdl/1 Introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ New path evaluation rules for annotations targeting annotations and external tar
[Section ##IfThenElse]|
Nested `If` without else part in collections|
[326](https://github.com/oasis-tcs/odata-specs/issues/326)
[Section ##SimpleIdentifier] | Prefer identifiers consisting only of latin letters, the underscore, and decimal numbers | [375](https://github.com/oasis-tcs/odata-specs/issues/375)
[Section ##Conformance] | Additional conformance clauses for version 4.02 |

## ##subsec Glossary
Expand Down
7 changes: 6 additions & 1 deletion odata-csdl/15 Identifier and Path Values.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ restrictions:
Non-normatively speaking it starts with a letter or underscore, followed
by at most 127 letters, underscores or digits.

For maximum interoperability services SHOULD use simple identifiers
consisting only of latin letters, the underscore, and decimal numbers,
that is match the pattern `^[_A-Za-z][_A-Za-z0-9]*$`.

## ##subsec Qualified Name

For model elements that are direct children of a schema: the namespace
Expand Down Expand Up @@ -574,9 +578,10 @@ In addition, OData 4.01 or greater services:
schema, a structural type, or an entity container) that differ only by
case

In addition, OData 4.01 services:
In addition, OData 4.02 or greater services:

15. SHOULD NOT include constant [Geo](#GeoValues) or [Stream values](#StreamValues) in annotations
16. SHOULD use [simple identifiers](#SimpleIdentifier) matching the pattern `^[_A-Za-z][_A-Za-z0-9]*$`

Conforming clients MUST be prepared to consume a model that uses any or
all constructs defined in this specification, including custom
Expand Down

0 comments on commit a3b1e2a

Please sign in to comment.