Code Monkey home page Code Monkey logo

adl's Introduction

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 peices 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

adl's People

Contributors

daviwil avatar fearthecowboy avatar hjhhh3000vitae avatar khenidak avatar miyanni avatar sanjaiganesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.