Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract type definition Core.Number as a super-type of all numeric types #718

Closed
ralfhandl opened this issue Mar 21, 2024 · 0 comments
Closed

Comments

@ralfhandl
Copy link
Contributor

CSDL has the abstract built-in type Edm.Primitive but no (less abstract) sub-type for numeric values.

Proposal

Add type definition Core.Number with underlying type Edm.PrimitiveType annotated with Validation.DerivedTypeConstraint listing all numeric types (depends on ODATA-1252), see https://github.com/oasis-tcs/odata-vocabularies/pull/224.

Alternative: Types.Number in new vocabulary, see https://github.com/oasis-tcs/odata-vocabularies/pull/225.

A new Types vocabulary could also solve

Alternatively we could add these types to the Core vocabulary, similar to

[https://github.com/oasis-tcs/odata-vocabularies/pull/224]
or [https://github.com/oasis-tcs/odata-vocabularies/pull/225]

Imported from ODATA-1253

@ralfhandl ralfhandl closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
@ralfhandl ralfhandl moved this to Closed in OData TC Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Closed
Development

No branches or pull requests

1 participant