luckymarmot / API-Flow

Universal data structure and converter for API formats (Swagger, RAML, Paw, Postman…)
MIT License
194 stars 24 forks source link

API Flow v0.2 #110

Closed JonathanMontane closed 7 years ago

JonathanMontane commented 7 years ago

NOT READY FOR REVIEW

This PR modifies API-Flow to support a lot more features (like multiple URLs on a single resource)

Model

Parsers

General

Add the static method isParsable to parsers with the following interface:

Parser.isParsable = ({ content, file, url }):boolean =>{ ... }

Add the method resolve to parsers with the following interface:

parser.resolve = ({ fsResolver, httpResolver }, updatedItems, item) => {
  ...
  return updatedItems
}

Refactoring/Writing

Serializers

Documentation

Models

Parsers

Serializers

Dependencies

Typing

Styling

Testing

Models

Parsers

Serializers

Integrations

JonathanMontane commented 7 years ago

Working on e2e caused these fixes to be made:

RAML 1.0 Parser

Swagger 2.0 Parser

Swagger 2.0 Serializer

RAML 1.0 Serializer

JonathanMontane commented 7 years ago

Swagger Parser 2

RAML Serializer 1

JonathanMontane commented 7 years ago

merged into #develop in #112. closing.