Skip to content

Commit

Permalink
chore(parser-adapter-workflows-yaml-1): integrate into monorepo (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n authored Dec 13, 2023
1 parent 4fd392c commit af37e8e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ You can install ApiDOM packages using [npm CLI](https://docs.npmjs.com/cli):
$ npm install @swagger-api/apidom-parser-adapter-openapi-yaml-3-0
$ npm install @swagger-api/apidom-parser-adapter-openapi-yaml-3-1
$ npm install @swagger-api/apidom-parser-adapter-workflows-json-1
$ npm install @swagger-api/apidom-parser-adapter-workflows-yaml-1
$ npm install @swagger-api/apidom-parser-adapter-yaml-1-2
$ npm install @swagger-api/apidom-reference
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"clean": "lerna run clean",
"test": "lerna run test",
"link": "npm link --workspaces",
"unlink": "npm unlink --global @swagger-api/apidom-ast @swagger-api/apidom-core @swagger-api/apidom-error @swagger-api/apidom-json-path @swagger-api/apidom-json-pointer @swagger-api/apidom-json-pointer-relative @swagger-api/apidom-parser-adapter-json @swagger-api/apidom-ns-api-design-systems @swagger-api/apidom-ns-asyncapi-2 @swagger-api/apidom-ns-json-schema-draft-4 @swagger-api/apidom-ns-json-schema-draft-6 @swagger-api/apidom-ns-json-schema-draft-7 @swagger-api/apidom-ns-openapi-2 @swagger-api/apidom-ns-openapi-3-0 @swagger-api/apidom-ns-openapi-3-1 @swagger-api/apidom-parser-adapter-yaml-1-2 @swagger-api/apidom-parser-adapter-asyncapi-yaml-2 @swagger-api/apidom-parser-adapter-openapi-yaml-2 @swagger-api/apidom-parser-adapter-openapi-yaml-3-0 @swagger-api/apidom-parser-adapter-openapi-yaml-3-1 @swagger-api/apidom-parser @swagger-api/apidom-parser-adapter-api-design-systems-json @swagger-api/apidom-parser-adapter-api-design-systems-yaml @swagger-api/apidom-parser-adapter-asyncapi-json-2 @swagger-api/apidom-ls @swagger-api/apidom-reference @swagger-api/apidom-parser-adapter-openapi-json-2 @swagger-api/apidom-parser-adapter-openapi-json-3-0 @swagger-api/apidom-parser-adapter-openapi-json-3-1 @swagger-api/apidom-parser-adapter-workflows-json-1 @swagger-api/apidom-playground",
"unlink": "npm unlink --global @swagger-api/apidom-ast @swagger-api/apidom-core @swagger-api/apidom-error @swagger-api/apidom-json-path @swagger-api/apidom-json-pointer @swagger-api/apidom-json-pointer-relative @swagger-api/apidom-parser-adapter-json @swagger-api/apidom-ns-api-design-systems @swagger-api/apidom-ns-asyncapi-2 @swagger-api/apidom-ns-json-schema-draft-4 @swagger-api/apidom-ns-json-schema-draft-6 @swagger-api/apidom-ns-json-schema-draft-7 @swagger-api/apidom-ns-openapi-2 @swagger-api/apidom-ns-openapi-3-0 @swagger-api/apidom-ns-openapi-3-1 @swagger-api/apidom-parser-adapter-yaml-1-2 @swagger-api/apidom-parser-adapter-asyncapi-yaml-2 @swagger-api/apidom-parser-adapter-openapi-yaml-2 @swagger-api/apidom-parser-adapter-openapi-yaml-3-0 @swagger-api/apidom-parser-adapter-openapi-yaml-3-1 @swagger-api/apidom-parser @swagger-api/apidom-parser-adapter-api-design-systems-json @swagger-api/apidom-parser-adapter-api-design-systems-yaml @swagger-api/apidom-parser-adapter-asyncapi-json-2 @swagger-api/apidom-ls @swagger-api/apidom-reference @swagger-api/apidom-parser-adapter-openapi-json-2 @swagger-api/apidom-parser-adapter-openapi-json-3-0 @swagger-api/apidom-parser-adapter-openapi-json-3-1 @swagger-api/apidom-parser-adapter-workflows-json-1 @swagger-api/apidom-parser-adapter-workflows-yaml-1 @swagger-api/apidom-playground",
"prepare": "chmod +x ./node_modules/husky/lib/bin.js && husky install"
},
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/apidom-parser-adapter-workflows-json-1/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @swagger-api/apidom-parser-adapter-workflows-json-1-0
# @swagger-api/apidom-parser-adapter-workflows-json-1

`@swagger-api/apidom-parser-adapter-workflows-json-1-0` is a parser adapter for the [Workflows 1.x.x specification](https://github.com/OAI/sig-workflows/blob/main/versions/1.0.0.md) in [JSON format](https://www.json.org/json-en.html).
Under the hood this adapter uses [apidom-parser-adapter-json](https://github.com/swagger-api/apidom/tree/main/packages/apidom-parser-adapter-json)
Expand Down Expand Up @@ -60,7 +60,7 @@ During direct usage you don't need to provide `mediaType` as the `parse` functio
with [supported media types](#mediatypes).

```js
import { parse, detect } from '@swagger-api/apidom-parser-adapter-workflows-1';
import { parse, detect } from '@swagger-api/apidom-parser-adapter-workflows-json-1';

// detecting
await detect('{"workflowsSpec": "1.0.0"}'); // => true
Expand All @@ -76,7 +76,7 @@ You can omit the `mediaType` option here, but please read [Word on detect vs med

```js
import ApiDOMParser from '@swagger-api/apidom-parser';
import * as workflowsJsonAdapter from '@swagger-api/apidom-parser-adapter-workflows-1';
import * as workflowsJsonAdapter from '@swagger-api/apidom-parser-adapter-workflows-json-1';

const parser = ApiDOMParser();

Expand Down
Empty file.
11 changes: 5 additions & 6 deletions packages/apidom-parser-adapter-workflows-yaml-1/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @swagger-api/apidom-parser-adapter-workflows-yaml-1-0
# @swagger-api/apidom-parser-adapter-workflows-yaml-1

`@swagger-api/apidom-parser-adapter-workflows-yaml-1-0` is a parser adapter for the [Workflows 1.x.x specification](https://github.com/OAI/sig-workflows/blob/main/versions/1.0.0.md) in [JSON format](https://www.json.org/json-en.html).
Under the hood this adapter uses [apidom-parser-adapter-json](https://github.com/swagger-api/apidom/tree/main/packages/apidom-parser-adapter-json)
`@swagger-api/apidom-parser-adapter-workflows-yaml-1-0` is a parser adapter for the [Workflows 1.x.x specification](https://github.com/OAI/sig-workflows/blob/main/versions/1.0.0.md) in [YAML format](https://yaml.org/spec/1.2/spec.html).
Under the hood this adapter uses [apidom-parser-adapter-yaml-1-2](https://github.com/swagger-api/apidom/tree/main/packages/apidom-parser-adapter-yaml-1-2)
to parse a source string into generic ApiDOM in [base ApiDOM namespace](https://github.com/swagger-api/apidom/tree/main/packages/apidom#base-namespace)
which is then refracted with [Workflows 1.x.y Refractors](https://github.com/swagger-api/apidom/tree/main/packages/apidom-ns-workflows-1#refractors).

Expand All @@ -26,7 +26,6 @@ Defines list of media types that this parser adapter recognizes.
```js
[
'application/vnd.oai.workflows;version=1.0.0',
'application/vnd.oai.workflows+json;version=1.0.0',
'application/vnd.oai.workflows+yaml;version=1.0.0',
]
```
Expand Down Expand Up @@ -61,7 +60,7 @@ During direct usage you don't need to provide `mediaType` as the `parse` functio
with [supported media types](#mediatypes).

```js
import { parse, detect } from '@swagger-api/apidom-parser-adapter-workflows-1';
import { parse, detect } from '@swagger-api/apidom-parser-adapter-workflows-yaml-1';

// detecting
await detect('workflowsSpec: 1.0.0'); // => true
Expand All @@ -77,7 +76,7 @@ You can omit the `mediaType` option here, but please read [Word on detect vs med

```js
import ApiDOMParser from '@swagger-api/apidom-parser';
import * as workflowsYamlAdapter from '@swagger-api/apidom-parser-adapter-workflows-1';
import * as workflowsYamlAdapter from '@swagger-api/apidom-parser-adapter-workflows-yaml-1';

const parser = ApiDOMParser();

Expand Down
4 changes: 2 additions & 2 deletions packages/apidom-parser-adapter-workflows-yaml-1/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swagger-api/apidom-parser-adapter-workflows-yaml-1",
"version": "0.86.0",
"version": "0.87.0",
"description": "Parser adapter for parsing YAML documents into Workflows 1.x.y namespace.",
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -34,7 +34,7 @@
"type": "git",
"url": "git+https://github.com/swagger-api/apidom.git"
},
"author": "Vladimir Gorej",
"author": "Frank Kilcommins",
"license": "Apache-2.0",
"dependencies": {
"@babel/runtime-corejs3": "^7.20.7",
Expand Down

0 comments on commit af37e8e

Please sign in to comment.