@odata/metadata
v0.2.8
Published
OData(V4) Metadata Utilities
Downloads
12,141
Readme
OData(V4) Metadata
This library implements the EDM and EDMX classes from the OData CSDL V4.
Features
- Edm and Edmx classes
- will provide Validation logic - based on specs (-on the way)
- will Download and parse metadata from $metadata document or uri endpoint
Usage
$ npm install -S @odata/metadata
then just
import { Edm } from '@odata/metadata'
let entityType = new edm.EntityType({
name: "Orders",
property: [{ name:"OrderID", type: Edm.Integer }]
})
entityType.properties.push(new Edm.Property(...))