Skip to content

Commit

Permalink
Merge pull request #38 from redhat-developer/revert-22-mono-core
Browse files Browse the repository at this point in the history
Revert "Mono core"
  • Loading branch information
dimakis authored Dec 16, 2022
2 parents 7619dbe + 2fda587 commit 91884c3
Show file tree
Hide file tree
Showing 1,719 changed files with 935 additions and 356,542 deletions.
2 changes: 1 addition & 1 deletion .errors/errors_kafka_mgmt.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
"code": "KAFKAS-MGMT-121"
},
{
"reason": "Too many requests",
"reason": "Too Many requests",
"id": "429",
"kind": "Error",
"href": "/api/kafkas_mgmt/v1/errors/429",
Expand Down
84 changes: 42 additions & 42 deletions .errors/errors_srs_mgmt.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,116 +5,116 @@
"total": 14,
"items": [
{
"reason": "Unspecified error",
"operation_id": "",
"id": "1",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/1",
"code": "SRS-MGMT-1"
"code": "SRS-MGMT-1",
"reason": "Unspecified error",
"operation_id": ""
},
{
"reason": "Registry with id='?' not found",
"operation_id": "",
"id": "2",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/2",
"code": "SRS-MGMT-2"
"code": "SRS-MGMT-2",
"reason": "Registry with id='?' not found",
"operation_id": ""
},
{
"reason": "Bad date or time format",
"operation_id": "",
"id": "3",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/3",
"code": "SRS-MGMT-3"
"code": "SRS-MGMT-3",
"reason": "Bad date or time format",
"operation_id": ""
},
{
"reason": "Invalid request content or parameters. Make sure the request conforms to the given JSON schema",
"operation_id": "",
"id": "4",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/4",
"code": "SRS-MGMT-4"
"code": "SRS-MGMT-4",
"reason": "Invalid request content or parameters. Make sure the request conforms to the given JSON schema",
"operation_id": ""
},
{
"reason": "Bad request format - invalid JSON",
"operation_id": "",
"id": "5",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/5",
"code": "SRS-MGMT-5"
"code": "SRS-MGMT-5",
"reason": "Bad request format - invalid JSON",
"operation_id": ""
},
{
"reason": "Required terms have not been accepted for account id='?'",
"operation_id": "",
"id": "6",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/6",
"code": "SRS-MGMT-6"
"code": "SRS-MGMT-6",
"reason": "Required terms have not been accepted for account id='?'",
"operation_id": ""
},
{
"reason": "The maximum number of allowed Registry instances has been reached",
"operation_id": "",
"id": "7",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/7",
"code": "SRS-MGMT-7"
"code": "SRS-MGMT-7",
"reason": "The maximum number of allowed Registry instances has been reached",
"operation_id": ""
},
{
"reason": "Error type with id='?' not found",
"operation_id": "",
"id": "8",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/8",
"code": "SRS-MGMT-8"
"code": "SRS-MGMT-8",
"reason": "Error type with id='?' not found",
"operation_id": ""
},
{
"reason": "Data conflict. Make sure a Registry with the given name does not already exist",
"operation_id": "",
"id": "9",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/9",
"code": "SRS-MGMT-9"
"code": "SRS-MGMT-9",
"reason": "Data conflict. Make sure a Registry with the given name does not already exist",
"operation_id": ""
},
{
"reason": "Bad request format - unsupported media type",
"operation_id": "",
"id": "10",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/10",
"code": "SRS-MGMT-10"
"code": "SRS-MGMT-10",
"reason": "Bad request format - unsupported media type",
"operation_id": ""
},
{
"reason": "Could not check quota for user?",
"operation_id": "",
"id": "11",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/11",
"code": "SRS-MGMT-11"
"code": "SRS-MGMT-11",
"reason": "Could not check quota for user?",
"operation_id": ""
},
{
"reason": "Evaluation instances not allowed.",
"operation_id": "",
"id": "12",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/12",
"code": "SRS-MGMT-12"
"code": "SRS-MGMT-12",
"reason": "Evaluation instances not allowed.",
"operation_id": ""
},
{
"reason": "User already has the maximum number of allowed Evaluation instances.",
"operation_id": "",
"id": "13",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/13",
"code": "SRS-MGMT-13"
"code": "SRS-MGMT-13",
"reason": "User already has the maximum number of allowed Evaluation instances.",
"operation_id": ""
},
{
"reason": "Total (global) number of instances exhausted.",
"operation_id": "",
"id": "14",
"kind": "Error",
"href": "/api/serviceregistry_mgmt/v1/errors/14",
"code": "SRS-MGMT-14"
"code": "SRS-MGMT-14",
"reason": "Total (global) number of instances exhausted.",
"operation_id": ""
}
]
}
46 changes: 15 additions & 31 deletions .errors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,21 @@


module.exports ={
go : {
kafkamgmt: {
definition: require("./errors_kafka_mgmt.json"),
file: "app-services-sdk-go/kafkamgmt/apiv1/error/errors.go"
},
registrymgmt: {
definition: require("./errors_srs_mgmt.json"),
file: "app-services-sdk-go/registrymgmt/apiv1/error/errors.go"
},
connectormgmt: {
definition: require("./errors_connector_mgmt.json"),
file: "app-services-sdk-go/connectormgmt/apiv1/error/errors.go"
},
kafka: {
definition: require("./errors_kafka_mgmt.json"),
file: "packages/kafka-management-sdk/src/errors.ts"
},
js : {
kafka: {
definition: require("./errors_kafka_mgmt.json"),
file: "app-services-sdk-js/packages/kafka-management-sdk/src/errors.ts"
},
srs: {
definition: require("./errors_srs_mgmt.json"),
file: "app-services-sdk-js/packages/registry-management-sdk/src/errors.ts"
},
connector: {
definition: require("./errors_connector_mgmt.json"),
file: "app-services-sdk-js/packages/connector-management-sdk/src/errors.ts"
},
kafkainstance: {
definition: require("./errors_kafka_instance.json"),
file: "app-services-sdk-js/packages/kafka-instance-sdk/src/errors.ts"
},
}
srs: {
definition: require("./errors_srs_mgmt.json"),
file: "packages/registry-management-sdk/src/errors.ts"
},
connector: {
definition: require("./errors_connector_mgmt.json"),
file: "packages/connector-management-sdk/src/errors.ts"
},
kafkainstance: {
definition: require("./errors_kafka_instance.json"),
file: "packages/kafka-instance-sdk/src/errors.ts"
},
}

19 changes: 3 additions & 16 deletions .github/workflows/api-update.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Update API specs
name: Update SDK
on:
repository_dispatch:
types: openapi-spec-change
schedule:
- cron: '0 0 * * *'
## Manual request that can be used for testing and retriggering failed updates
workflow_dispatch:
jobs:
generate_api_specs:
generate_client:
env:
APP_SERVICES_TOKEN: ${{ secrets.APP_SERVICES_TOKEN }}
BF2_TOKEN: ${{ secrets.BF2_TOKEN }}
Expand All @@ -23,17 +21,6 @@ jobs:
run: sudo apt-get install jq
- name: Fetch OpenAPI doc
run: python scripts/fetch_api.py
start-generate-sdks-workflow:
needs: generate_api_specs # these 'need' fields are used to keep jobs running in order
uses: ./.github/workflows/generate-sdks.yaml
start-generate-errors-workflow:
needs: start-generate-sdks-workflow
uses: ./.github/workflows/generate-errors.yaml
make-pull-request:
needs: start-generate-errors-workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Make pull request
uses: peter-evans/create-pull-request@v4
with:
Expand All @@ -44,6 +31,6 @@ jobs:
branch-suffix: timestamp
delete-branch: true
body: |
_This pull request was auto-generated from [api-update.yaml](https://github.com/redhat-developer/app-services-sdk-core/blob/main/.github/workflows/api-update.yaml)_
_This pull request was auto-generated_
This PR adds the latest openapi files
20 changes: 0 additions & 20 deletions .github/workflows/generate-errors.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/generate-sdks.yaml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/publish.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
openapitools.json
9 changes: 0 additions & 9 deletions .openapi-generator-ignore

This file was deleted.

Loading

0 comments on commit 91884c3

Please sign in to comment.