Skip to content

Commit

Permalink
yaml lint fix for javascript
Browse files Browse the repository at this point in the history
Signed-off-by: mineme0110 <shailesh.patil@iohk.io>
  • Loading branch information
mineme0110 committed Apr 25, 2024
1 parent 18eb8ab commit c4b56b3
Show file tree
Hide file tree
Showing 5 changed files with 1,976 additions and 1,766 deletions.
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/1-bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ body:
attributes:
label: Is this a regression?
options:
- 'Yes'
- 'No'
- "Yes"
- "No"
validations:
required: true

Expand All @@ -23,11 +23,13 @@ body:
id: exception-or-error
attributes:
label: Please provide the exception or error you saw
render: "Markdown"

- type: textarea
id: environment
attributes:
label: Please provide the environment you discovered this bug in
render: "Markdown"

- type: textarea
id: other
Expand Down
18 changes: 9 additions & 9 deletions cloud-agent/client/generator/generate-clients.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ set -e

# generate kotlin models
yarn openapi-generator-cli generate \
-g kotlin \
-i ../../service/api/http/prism-agent-openapi-spec.yaml \
-o ../kotlin \
--ignore-file-override ../kotlin/.openapi-generator-ignore \
--additional-properties=packageName=io.iohk.atala.prism,serializationLibrary=gson,enumPropertyNaming=UPPERCASE
-g kotlin \
-i ../../service/api/http/cloud-agent-openapi-spec.yaml \
-o ../kotlin \
--ignore-file-override ../kotlin/.openapi-generator-ignore \
--additional-properties=packageName=io.iohk.atala.prism,serializationLibrary=gson,enumPropertyNaming=UPPERCASE

# generate typescript models
yarn openapi-generator-cli generate \
-g typescript \
-i ../../service/api/http/prism-agent-openapi-spec.yaml \
-o ../typescript \
--ignore-file-override ../typescript/.openapi-generator-ignore
-g typescript \
-i ../../service/api/http/cloud-agent-openapi-spec.yaml \
-o ../typescript \
--ignore-file-override ../typescript/.openapi-generator-ignore

# generate python models
# yarn openapi-generator-cli generate -g python -i oas.yml --skip-validate-spec -o ../python --ignore-file-override ../python/.openapi-generator-ignore
2 changes: 1 addition & 1 deletion cloud-agent/client/generator/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "prism-agent-clients-generator",
"name": "cloud-agent-clients-generator",
"version": "1.0.0",
"description": "Generates the clients based on the OAS for many languages",
"author": "Allain Magyar",
Expand Down
6 changes: 3 additions & 3 deletions cloud-agent/client/generator/publish-clients.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash
set -e

PRISM_AGENT_VERSION=${VERSION_TAG:13}
AGENT_VERSION=${VERSION_TAG:13}

# install dependencies
yarn

# kotlin
gradle -p ../kotlin -Pversion=${PRISM_AGENT_VERSION} publish
gradle -p ../kotlin -Pversion=${AGENT_VERSION} publish

# typescript
yarn --cwd ../typescript
yarn --cwd ../typescript publish --new-version ${PRISM_AGENT_VERSION} --no-git-tag-version
yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version

# python

0 comments on commit c4b56b3

Please sign in to comment.