Skip to content

Commit

Permalink
Merge pull request #146 from toshiaki61/feature/replace-leading-atmark
Browse files Browse the repository at this point in the history
feat: allow at mark in path
  • Loading branch information
Hasu authored Jan 14, 2022
2 parents 7550339 + 32a25ac commit 4a7f748
Show file tree
Hide file tree
Showing 81 changed files with 2,091 additions and 80 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,30 +30,30 @@ jobs:
if: matrix.os != 'windows-latest'
- run: yarn typecheck
- run: yarn test --coverage
- run: npx codecov
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.node-version == 14
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# - run: npx codecov
# if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' && matrix.node-version == 14
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

release:
runs-on: ubuntu-latest
needs: test
if: contains(github.ref, 'tags/v')
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: "https://registry.npmjs.org"
- uses: actions/cache@v2
id: yarn-cache
with:
path: "node_modules"
key: ${{ runner.os }}-node-v12-yarn-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# release:
# runs-on: ubuntu-latest
# needs: test
# if: contains(github.ref, 'tags/v')
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js
# uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: "https://registry.npmjs.org"
# - uses: actions/cache@v2
# id: yarn-cache
# with:
# path: "node_modules"
# key: ${{ runner.os }}-node-v12-yarn-${{ hashFiles('yarn.lock') }}
# - run: yarn --frozen-lockfile
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# - run: yarn build
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
#dist
external_refs_sample
dist
package-lock.json
10 changes: 10 additions & 0 deletions aspida.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,15 @@ module.exports = [
input: 'samples/array-one-of',
outputEachDir: true,
openapi: { inputFile: 'samples/array-one-of.yml' }
},
{
input: 'samples/default-required',
outputEachDir: true,
openapi: { inputFile: 'samples/default-required.yml', requiredConfig: { schema: false } }
},
{
input: 'samples/path-at-mark',
outputEachDir: true,
openapi: { inputFile: 'samples/path-at-mark.yml', replaceLeadingAtMark: '' }
}
]
13 changes: 13 additions & 0 deletions dist/buildTemplate.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { OpenAPIV3 } from 'openapi-types';
import { Config } from './getConfig';
declare const _default: ({ input, isYaml, requiredConfig, replaceLeadingAtMark }: Config) => Promise<{
openapi: OpenAPIV3.Document<{}>;
baseURL: string;
types: string | null;
files: {
file: string[];
methods: string;
}[];
}>;
export default _default;
//# sourceMappingURL=buildTemplate.d.ts.map
1 change: 1 addition & 0 deletions dist/buildTemplate.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions dist/buildTemplate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/buildTemplate.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions dist/buildV3.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { OpenAPIV3 } from 'openapi-types';
import { RequiredConfig } from './getConfig';
declare const _default: (openapi: OpenAPIV3.Document, requiredConfig: RequiredConfig, replaceLeadingAtMark: string) => {
openapi: OpenAPIV3.Document<{}>;
baseURL: string;
types: string | null;
files: {
file: string[];
methods: string;
}[];
};
export default _default;
//# sourceMappingURL=buildV3.d.ts.map
1 change: 1 addition & 0 deletions dist/buildV3.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a7f748

Please sign in to comment.