-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #2
- Loading branch information
Showing
76 changed files
with
179 additions
and
58 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ages/apidom-ns-openapi3/package-lock.json → ...es/apidom-ns-openapi3-1/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
.../packages/apidom-ns-openapi3/package.json → ...ackages/apidom-ns-openapi3-1/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
/lib | ||
/types | ||
/config | ||
/.eslintrc.js | ||
/.nyc_output | ||
/node_modules | ||
/**/*.js |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...parser-adapter-openapi3/package-lock.json → ...rser-adapter-openapi3-1/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
apidom/packages/apidom-parser-adapter-openapi3-1/src/parser/visitors/info/SummaryVisitor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import stampit from 'stampit'; | ||
import SpecificationVisitor from '../SpecificationVisitor'; | ||
import { BREAK } from '../../visitor'; | ||
|
||
const SummaryVisitor = stampit(SpecificationVisitor, { | ||
methods: { | ||
property(propertyNode) { | ||
const keyElement = new this.namespace.elements.String(propertyNode.key.value); | ||
const valueElement = new this.namespace.elements.String(propertyNode.value.value); | ||
const { MemberElement } = this.namespace.elements.Element.prototype; | ||
|
||
this.element = new MemberElement( | ||
this.maybeAddSourceMap(propertyNode.key, keyElement), | ||
this.maybeAddSourceMap(propertyNode.value, valueElement), | ||
); | ||
|
||
return BREAK; | ||
}, | ||
}, | ||
}); | ||
|
||
export default SummaryVisitor; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...es/apidom-parser-adapter-openapi3-1/src/parser/visitors/info/license/IdentifierVisitor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import stampit from 'stampit'; | ||
import SpecificationVisitor from '../../SpecificationVisitor'; | ||
import { BREAK } from '../../../visitor'; | ||
|
||
const IdentifierVisitor = stampit(SpecificationVisitor, { | ||
methods: { | ||
property(propertyNode) { | ||
const keyElement = new this.namespace.elements.String(propertyNode.key.value); | ||
const valueElement = new this.namespace.elements.String(propertyNode.value.value); | ||
const { MemberElement } = this.namespace.elements.Element.prototype; | ||
|
||
this.element = new MemberElement( | ||
this.maybeAddSourceMap(propertyNode.key, keyElement), | ||
this.maybeAddSourceMap(propertyNode.value, valueElement), | ||
); | ||
|
||
return BREAK; | ||
}, | ||
}, | ||
}); | ||
|
||
export default IdentifierVisitor; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
35 changes: 35 additions & 0 deletions
35
apidom/packages/apidom-parser-adapter-openapi3-1/test/.eslintrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"env": { | ||
"mocha": true | ||
}, | ||
"globals": { | ||
"document": true | ||
}, | ||
"plugins": [ | ||
"mocha" | ||
], | ||
"rules": { | ||
"no-void": 0, | ||
"func-names": 0, | ||
"prefer-arrow-callback": 0, | ||
"no-array-constructor": 0, | ||
"prefer-rest-params": 0, | ||
"no-new-wrappers": 0, | ||
"mocha/no-skipped-tests": 2, | ||
"mocha/handle-done-callback": 2, | ||
"mocha/valid-suite-description": 2, | ||
"mocha/no-mocha-arrows": 2, | ||
"mocha/no-hooks-for-single-case": 2, | ||
"mocha/no-sibling-hooks": 2, | ||
"mocha/no-top-level-hooks": 2, | ||
"mocha/no-identical-title": 2, | ||
"mocha/no-nested-tests": 2, | ||
"mocha/no-exclusive-tests": 2 | ||
}, | ||
"overrides": [{ | ||
"files": ["mocha-bootstrap.js"], | ||
"parserOptions": { | ||
"sourceType": "script" | ||
} | ||
}] | ||
} |
Oops, something went wrong.