0.1.234 • Published 5 years ago

@azure-tools/sourcemap v0.1.234

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

ADL - An Api Description Language using TypeScript

Goals today:

  • parse and persist an ADL model
  • convert from/to OpenAPI (as much as we can)
  • some docs that illustrate the ideas

Aspiration

An alternative to OpenAPI, Swagger means of descrbing an API surface, that facilitates describing multiple API versions of an API.

  • provide a better authoring experience for OpenAPI specifications
  • handle multiple api-versions without significantly increasing complexity.
  • provide a more natural language for expressing an API surface
  • protocol agnostic
  • existing tools available, not reinventing the wheel.

Reasoning

OpenAPI is a fairly valuable standard for generating wire-protocol documentation for Http APIs.

Unfortunately, it has a few pain-points, that ratchet up the complexity the deeper you get:

  • multiple API versions - docmenting an evolving surface
  • multipe files ($refs as a means to connect pieces is fragile.)
  • YAML/JSON as an encoding format renders the content to be merely data.
  • JSON Schema lacks sufficent fidelity to manage a lot of cases easily
  • content aware editors are nearly non-existant
  • Path Centric model taints the API both in design and expression

Alternatives

Of course, there are an incredible number of ways to document APIs:

  • OpenAPI - YAML/JSON
  • Smithy -
  • RAML -
  • GraphQL -
  • CSDL

Priorities

In deciding a path,

  • Leverage existing tooling as much as possible
  • Language should be able to capture an API, however it's constructed
  • Project-specific linting/constraints should easy to build and enforce
  • Typical change scenarios need to have the lowest friction
0.1.234

5 years ago

0.1.233

5 years ago

0.1.231

5 years ago

0.1.230

5 years ago

0.1.229

5 years ago

0.1.228

5 years ago

0.1.227

5 years ago

0.1.226

5 years ago

0.1.225

5 years ago

0.1.224

5 years ago

0.1.223

5 years ago

0.1.222

5 years ago

0.1.221

5 years ago

0.1.219

5 years ago

0.1.220

5 years ago

0.1.218

5 years ago

0.1.208

5 years ago

0.1.207

5 years ago

0.1.205

5 years ago

0.1.204

5 years ago

0.1.203

5 years ago

0.1.202

5 years ago

0.1.200

5 years ago

1.0.197

5 years ago

1.0.194

5 years ago

0.1.199

5 years ago

1.0.193

5 years ago

1.0.191

5 years ago

1.0.190

5 years ago

1.0.189

5 years ago

1.0.187

5 years ago

1.0.188

5 years ago

1.0.185

5 years ago

1.0.175

5 years ago

1.0.166

5 years ago

1.0.165

5 years ago

1.0.164

5 years ago

1.0.163

5 years ago

1.0.162

5 years ago

1.0.160

5 years ago