Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes postman module issues #148

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions configs/node/api-flow-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ import Environment from '../../src/environments/node/Environment'

import SwaggerLoader from '../../src/loaders/swagger/Loader'
import RAMLLoader from '../../src/loaders/raml/Loader'
import PostmanV2Loader from '../../src/loaders/postman/v2.0/Loader'
import PostmanCollectionV2Loader from '../../src/loaders/postman/v2.0/Loader'

import SwaggerV2Parser from '../../src/parsers/swagger/v2.0/Parser'
import RAMLV1Parser from '../../src/parsers/raml/v1.0/Parser'
import PostmanV2Parser from '../../src/loaders/postman/v2.0/Parser'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this was the main issue, but naming consistency is a thing.

import PostmanCollectionV2Serializer from '../../src/serializers/postman/v2.0/Serializer'

import SwaggerV2Serializer from '../../src/serializers/swagger/v2.0/Serializer'
import RAMLV1Serializer from '../../src/serializers/raml/v1.0/Serializer'
import PostmanV2Serializer from '../../src/serializers/postman/v2.0/Serializer'
import PostmanCollectionV2Parser from '../../src/serializers/postman/v2.0/Serializer'
import InternalSerializer from '../../src/serializers/internal/Serializer'

export const loaders = [
SwaggerLoader,
RAMLLoader,
PostmanV2Loader
PostmanCollectionV2Loader
]

export const parsers = [
SwaggerV2Parser,
RAMLV1Parser,
PostmanV2Parser
PostmanCollectionV2Parser
]

export const serializers = [
SwaggerV2Serializer,
RAMLV1Serializer,
InternalSerializer,
PostmanV2Serializer
PostmanCollectionV2Serializer
]

export const environment = Environment
11 changes: 5 additions & 6 deletions configs/web/api-flow-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import Environment from '../../src/environments/web/Environment'

import SwaggerLoader from '../../src/loaders/swagger/Loader'
import RAMLLoader from '../../src/loaders/raml/Loader'
import PostmanV2Loader from '../../src/loaders/postman/v2.0/Loader'
import PostmanCollectionV2Loader from '../../src/loaders/postman/v2.0/Loader'

import SwaggerV2Parser from '../../src/parsers/swagger/v2.0/Parser'
import RAMLV1Parser from '../../src/parsers/raml/v1.0/Parser'
import PostmanV2Parser from '../../src/loaders/postman/v2.0/Parser'
import PostmanCollectionV2Serializer from '../../src/serializers/postman/v2.0/Serializer'

import SwaggerV2Serializer from '../../src/serializers/swagger/v2.0/Serializer'
import RAMLV1Serializer from '../../src/serializers/raml/v1.0/Serializer'
Expand All @@ -16,20 +16,19 @@ import InternalSerializer from '../../src/serializers/internal/Serializer'
export const loaders = [
SwaggerLoader,
RAMLLoader,
PostmanV2Loader
PostmanCollectionV2Loader
]

export const parsers = [
SwaggerV2Parser,
RAMLV1Parser,
PostmanV2Parser
]
PostmanCollectionV2Parser

export const serializers = [
SwaggerV2Serializer,
RAMLV1Serializer,
InternalSerializer,
PostmanV2Serializer
PostmanCollectionV2Serializer
]

export const environment = Environment
10 changes: 5 additions & 5 deletions configs/webworker/api-flow-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@ import Environment from '../../src/environments/web/Environment'

import SwaggerLoader from '../../src/loaders/swagger/Loader'
import RAMLLoader from '../../src/loaders/raml/Loader'
import PostmanV2Loader from '../../src/loaders/postman/v2.0/Loader'
import PostmanCollectionV2Loader from '../../src/loaders/postman/v2.0/Loader'

import SwaggerV2Parser from '../../src/parsers/swagger/v2.0/Parser'
import RAMLV1Parser from '../../src/parsers/raml/v1.0/Parser'
import PostmanV2Parser from '../../src/loaders/postman/v2.0/Parser'

import SwaggerV2Serializer from '../../src/serializers/swagger/v2.0/Serializer'
import RAMLV1Serializer from '../../src/serializers/raml/v1.0/Serializer'
import PostmanV2Serializer from '../../src/serializers/postman/v2.0/Serializer'
import PostmanCollectionV2Serializer from '../../src/serializers/postman/v2.0/Serializer'
import InternalSerializer from '../../src/serializers/internal/Serializer'

export const loaders = [
SwaggerLoader,
RAMLLoader,
PostmanV2Loader
PostmanCollectionV2Loader
]

export const parsers = [
SwaggerV2Parser,
RAMLV1Parser,
PostmanV2Parser
PostmanCollectionV2Parser
]

export const serializers = [
SwaggerV2Serializer,
RAMLV1Serializer,
InternalSerializer,
PostmanV2Serializer
PostmanCollectionV2Serializer
]

export const environment = Environment
2 changes: 1 addition & 1 deletion configs/webworker/webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const config = {
target: 'webworker',
entry: path.resolve(__dirname, './api-flow.js'),
output: {
path: path.resolve(__dirname, '../../../dist/node/'),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused other issues where running webworker and node in make would override node.

path: path.resolve(__dirname, '../../../dist/webworker/'),
filename: 'api-flow.js',
libraryTarget: 'umd'
},
Expand Down
4 changes: 2 additions & 2 deletions src/api-flow-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import PostmanCollectionV2Parser from './parsers/postman/v2.0/Parser'
import SwaggerV2Serializer from './serializers/swagger/v2.0/Serializer'
import RAMLV1Serializer from './serializers/raml/v1.0/Serializer'
import InternalSerializer from './serializers/internal/Serializer'
import PostmanV2Serializer from './serializers/postman/v2.0/Serializer'
import PostmanCollectionV2Serializer from './serializers/postman/v2.0/Serializer'
import ApiBlueprint1ASerializer from './serializers/api-blueprint/1A/Serializer'

export const loaders = [
Expand All @@ -34,7 +34,7 @@ export const serializers = [
SwaggerV2Serializer,
RAMLV1Serializer,
InternalSerializer,
PostmanV2Serializer,
PostmanCollectionV2Serializer,
ApiBlueprint1ASerializer
]

Expand Down