Closed JonathanMontane closed 7 years ago
This PR modifies API-Flow to support a lot more features (like multiple URLs on a single resource)
Core.js
Parameter.js
ParameterContainer.js
Response.js
Api.js
Utils.js
Contact.js
License.js
Info.js
Auth.js
auths/*.js
Context
Api
internals
Parameter
constraints
externals
applicableContexts
Body
Group
getRequests
getRequestIds
Request
ParameterContainer
url
URLComponents
URLComponent
urls
references
Reference
JSONSchema
Constraint.js
XMLSchema
Store
ReferenceContainer
Variable
JSONSchemaReference
Resource
Interface
Add the static method isParsable to parsers with the following interface:
isParsable
Parser.isParsable = ({ content, file, url }):boolean =>{ ... }
swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
__internals__
dummy
Add the method resolve to parsers with the following interface:
resolve
parser.resolve = ({ fsResolver, httpResolver }, updatedItems, item) => { ... return updatedItems }
paw
Context.js
Group.js
Item.js
Interface.js
ModelInfo.js
Reference.js
Request.js
Resource.js
Store.js
URL.js
URLComponent.js
Variable.js
immutable
>= 3.8
const
{ 123: 321 } => { '123': 321 }
src/**/__tests__/*-test.js => src/**/__tests__/*.spec.js
models/Parameter.js
models/ParameterContainer.js
models/Request.js
models/Response.js
models/Api.js
models/URL.js
models/Constraint.js
models/Auth.js
models/Context.js
models/Group.js
models/Contact.js
models/License.js
models/Info.js
models/ModelInfo.js
models/URLComponent.js
models/Interface.js
models/Resource.js
models/Store.js
models/Reference.js
models/Variable.js
models/Item.js
parsers/swagger/v2/Parser.js
parsers/swagger/v3/Parser.js
parsers/raml/v0.8/Parser.js
parsers/raml/v1/Parser.js
parsers/postman/v1/Parser.js
parsers/postman/v2/Parser.js
parsers/paw/v3/Parser.js
parsers/insomnia/v3/Parser.js
parsers/curl/v1/Parser.js
parsers/__internals__/v1/Parser.js
serializers/swagger/v2/Serializer.js
serializers/swagger/v3/Serializer.js
serializers/raml/v0.8/Serializer.js
serializers/raml/v1/Serializer.js
serializers/postman/v1/Serializer.js
serializers/postman/v2/Serializer.js
serializers/paw/v3/Serializer.js
serializers/insomnia/v3/Serializer.js
serializers/curl/v1/Serializer.js
serializers/__internals__/v1/Serializer.js
swagger v2 => swagger v2
swagger v2 => swagger v3
swagger v2 => raml v0.8
swagger v2 => raml v1
swagger v2 => postman v1
swagger v2 => postman v2
swagger v2 => insomnia v3
swagger v2 => curl v1
swagger v2 => __internals__
swagger v3 => swagger v2
swagger v3 => swagger v3
swagger v3 => raml v0.8
swagger v3 => raml v1
swagger v3 => postman v1
swagger v3 => postman v2
swagger v3 => insomnia v3
swagger v3 => curl v1
swagger v3 => __internals__
raml v0.8 => swagger v2
raml v0.8 => swagger v3
raml v0.8 => raml v0.8
raml v0.8 => raml v1
raml v0.8 => postman v1
raml v0.8 => postman v2
raml v0.8 => insomnia v3
raml v0.8 => curl v1
raml v0.8 => __internals__
raml v1 => swagger v2
raml v1 => swagger v3
raml v1 => raml v0.8
raml v1 => raml v1
raml v1 => postman v1
raml v1 => postman v2
raml v1 => insomnia v3
raml v1 => curl v1
raml v1 => __internals__
postman v1 => swagger v2
postman v1 => swagger v3
postman v1 => raml v0.8
postman v1 => raml v1
postman v1 => postman v1
postman v1 => postman v2
postman v1 => insomnia v3
postman v1 => curl v1
postman v1 => __internals__
postman v2 => swagger v2
postman v2 => swagger v3
postman v2 => raml v0.8
postman v2 => raml v1
postman v2 => postman v1
postman v2 => postman v2
postman v2 => insomnia v3
postman v2 => curl v1
postman v2 => __internals__
insomnia v3 => swagger v2
insomnia v3 => swagger v3
insomnia v3 => raml v0.8
insomnia v3 => raml v1
insomnia v3 => postman v1
insomnia v3 => postman v2
insomnia v3 => insomnia v3
insomnia v3 => curl v1
insomnia v3 => __internals__
curl v1 => swagger v2
curl v1 => swagger v3
curl v1 => raml v0.8
curl v1 => raml v1
curl v1 => postman v1
curl v1 => postman v2
curl v1 => insomnia v3
curl v1 => curl v1
curl v1 => __internals__
__internals__ => swagger v2
__internals__ => swagger v3
__internals__ => raml v0.8
__internals__ => raml v1
__internals__ => postman v1
__internals__ => postman v2
__internals__ => insomnia v3
__internals__ => curl v1
__internals__ => __internals__
Working on e2e caused these fixes to be made:
expand
strings
integers
merged into #develop in #112. closing.
NOT READY FOR REVIEW
This PR modifies API-Flow to support a lot more features (like multiple URLs on a single resource)
Model
Core.js
intoParameter.js
,ParameterContainer.js
,Response.js
, andApi.js
Utils.js
intoContact.js
,License.js
andInfo.js
Auth.js
into manyauths/*.js
filesContext
object intoApi
internals
field ofParameter
intoconstraints
externals
field ofParameter
intoapplicableContexts
Body
object intoContext
Group
(e.g. mergeWithGroup)getRequests
to provide a RequestMapgetRequestIds
toGroup
Request
ParameterContainer
url
andURLComponents
URLComponent
modelurl
field intourls
)references
to separate the concept of relative reference from the content resolution.Reference
modelJSONSchema
model (inConstraint.js
)XMLSchema
model (inConstraint.js
)Store
to replaceReferenceContainer
Variable
to replace the use ofJSONSchemaReference
inReferenceContainer
to model environment variablesRequest
intoResource
andRequest
to separate resources from methods.Interface
to help fingerprint shared semanticsParsers
General
Add the static method
isParsable
to parsers with the following interface:swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
__internals__
dummy
Add the method
resolve
to parsers with the following interface:swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
dummy
Refactoring/Writing
swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
__internals__
paw
Serializers
swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
__internals__
paw
Documentation
Models
Api.js
Auth.js
Constraint.js
Contact.js
Context.js
Group.js
Item.js
Info.js
Interface.js
License.js
ModelInfo.js
Parameter.js
ParameterContainer.js
Reference.js
Request.js
Resource.js
Response.js
Store.js
URL.js
URLComponent.js
Variable.js
Parsers
swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
__internals__
paw
Serializers
swagger/v2
swagger/v3
raml/v0.8
raml/v1
postman/v1
postman/v2
insomnia/v3
curl/v1
__internals__
paw
Dependencies
immutable
dependencies to>= 3.8
to have flow typesTyping
Styling
const
where applicable{ 123: 321 } => { '123': 321 }
(proven to reduce bugs with immutable)Testing
src/**/__tests__/*-test.js => src/**/__tests__/*.spec.js
Models
models/Parameter.js
models/ParameterContainer.js
models/Request.js
models/Response.js
models/Api.js
models/URL.js
models/Constraint.js
models/Auth.js
models/Context.js
models/Group.js
models/Contact.js
models/License.js
models/Info.js
models/ModelInfo.js
models/URLComponent.js
models/Interface.js
models/Resource.js
models/Store.js
models/Reference.js
models/Variable.js
models/Item.js
Parsers
parsers/swagger/v2/Parser.js
parsers/swagger/v3/Parser.js
parsers/raml/v0.8/Parser.js
parsers/raml/v1/Parser.js
parsers/postman/v1/Parser.js
parsers/postman/v2/Parser.js
parsers/paw/v3/Parser.js
parsers/insomnia/v3/Parser.js
parsers/curl/v1/Parser.js
parsers/__internals__/v1/Parser.js
Serializers
serializers/swagger/v2/Serializer.js
serializers/swagger/v3/Serializer.js
serializers/raml/v0.8/Serializer.js
serializers/raml/v1/Serializer.js
serializers/postman/v1/Serializer.js
serializers/postman/v2/Serializer.js
serializers/paw/v3/Serializer.js
serializers/insomnia/v3/Serializer.js
serializers/curl/v1/Serializer.js
serializers/__internals__/v1/Serializer.js
Integrations
swagger v2 => swagger v2
swagger v2 => swagger v3
swagger v2 => raml v0.8
swagger v2 => raml v1
swagger v2 => postman v1
swagger v2 => postman v2
swagger v2 => insomnia v3
swagger v2 => curl v1
swagger v2 => __internals__
swagger v3 => swagger v2
swagger v3 => swagger v3
swagger v3 => raml v0.8
swagger v3 => raml v1
swagger v3 => postman v1
swagger v3 => postman v2
swagger v3 => insomnia v3
swagger v3 => curl v1
swagger v3 => __internals__
raml v0.8 => swagger v2
raml v0.8 => swagger v3
raml v0.8 => raml v0.8
raml v0.8 => raml v1
raml v0.8 => postman v1
raml v0.8 => postman v2
raml v0.8 => insomnia v3
raml v0.8 => curl v1
raml v0.8 => __internals__
raml v1 => swagger v2
raml v1 => swagger v3
raml v1 => raml v0.8
raml v1 => raml v1
raml v1 => postman v1
raml v1 => postman v2
raml v1 => insomnia v3
raml v1 => curl v1
raml v1 => __internals__
postman v1 => swagger v2
postman v1 => swagger v3
postman v1 => raml v0.8
postman v1 => raml v1
postman v1 => postman v1
postman v1 => postman v2
postman v1 => insomnia v3
postman v1 => curl v1
postman v1 => __internals__
postman v2 => swagger v2
postman v2 => swagger v3
postman v2 => raml v0.8
postman v2 => raml v1
postman v2 => postman v1
postman v2 => postman v2
postman v2 => insomnia v3
postman v2 => curl v1
postman v2 => __internals__
insomnia v3 => swagger v2
insomnia v3 => swagger v3
insomnia v3 => raml v0.8
insomnia v3 => raml v1
insomnia v3 => postman v1
insomnia v3 => postman v2
insomnia v3 => insomnia v3
insomnia v3 => curl v1
insomnia v3 => __internals__
curl v1 => swagger v2
curl v1 => swagger v3
curl v1 => raml v0.8
curl v1 => raml v1
curl v1 => postman v1
curl v1 => postman v2
curl v1 => insomnia v3
curl v1 => curl v1
curl v1 => __internals__
__internals__ => swagger v2
__internals__ => swagger v3
__internals__ => raml v0.8
__internals__ => raml v1
__internals__ => postman v1
__internals__ => postman v2
__internals__ => insomnia v3
__internals__ => curl v1
__internals__ => __internals__