Skip to content

add multifile arg #46

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

Open
wants to merge 1 commit into
base: main
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
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Exclude this file in the .gitignore

// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [ {
"type": "node",
"request": "launch",
"name": "Launch NGXFormGenerator",
// "program": "${workspaceFolder}/dist/index.js",
"program": "${workspaceFolder}/dist/generator-cli.js",
// "runtimeExecutable": "/usr/local/bin/node",
// "preLaunchTask": "tsc: build - tsconfig.json", // can't get this to work
"outFiles": ["${workspaceFolder}/**/*.js"],
"skipFiles": ["<node_internals>/**"]
}]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ npm install @verizonconnect/ngx-form-generator -g
## CLI Usage

```bash
ngx-form-generator -f swagger.json -o projects/forms/src/lib/
ngx-form-generator -i swagger.json -o projects/forms/src/lib/

# when installed locally in project run with npx
npx ngx-form-generator -f swagger.yaml -o projects/forms/src/lib/
npx ngx-form-generator -i swagger.yaml -o projects/forms/src/lib/
```

| Option | Alias | Comment | Required |
Expand Down
6 changes: 6 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Be sure to build the ngx-form-generator tool first by running `npm run build` in

Run the following from the `/demo` directory:

open https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't wan't manual steps here.

The petstore swagger is lacking in validation rules, making it inadequate for the demo.

copy it's contents into swagger.yaml

open https://petstore3.swagger.io/api/v3/openapi.json
copy it's contents into swagger.json

```bash
npm install
npm run generate:forms
Expand Down
Loading