@odata/metadata
TypeScript icon, indicating that this package has built-in type declarations

0.2.8 • Public • Published

OData(V4) Metadata

npm (scoped) GitHub Workflow Status Codecov

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

Readme

Keywords

Package Sidebar

Install

npm i @odata/metadata

Weekly Downloads

3,066

Version

0.2.8

License

MIT

Unpacked Size

249 kB

Total Files

56

Last publish

Collaborators

  • suntao