OData export writes CSDL JSON 4.01, with keys, Functions and Actions
Exporting an item to OData now writes its metadata as CSDL JSON 4.01, or as CSDL XML when you set the output option. You can export from OpenAPI, gRPC, GraphQL, Avro or any other source. How the CSDL is written.
- Valid CSDL. Each export is checked against the OASIS CSDL schemas and read back before it is offered. Before, an item with no OData metadata of its own could export an empty container.
- Every entity has a key. A key is inferred from an
id-like property, or synthesized when there is none, and the fidelity report says which. - Operations kept. CRUD operations map onto entity sets, and every other operation becomes an OData Function or Action instead of being left out.
- Types and constraints. Primitives become their CSDL types, such as
Edm.Int64,Edm.DateTimeOffsetandEdm.Guid. Patterns, ranges and allowed values becomeValidationannotations, and descriptions becomeCore.Description. - Losses in three groups. The fidelity report groups what OData cannot carry: keyless types, RPC calls and events, and type coercion. A gRPC client or bidirectional stream, or a GraphQL subscription, is no longer written as a single call; it is dropped and reported. A server stream returns a collection.
- OData 2 and 3. Older metadata is written as CSDL 4.01, with its facets kept and the change reported.
