Skip to content

Commit

Permalink
Merge pull request #283 from slr71/main
Browse files Browse the repository at this point in the history
CORE-1993: fix schema validation errors in subscription add-on endpoints.
  • Loading branch information
slr71 authored Mar 25, 2024
2 parents 53edef5 + 0892333 commit 80731b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/skaffold-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ on:

jobs:
call-workflow-passing-data:
uses: cyverse-de/github-workflows/.github/workflows/[email protected].3
uses: cyverse-de/github-workflows/.github/workflows/[email protected].7
with:
build-prerelease: ${{ contains(github.ref_name, '-rc') }}
secrets:
harbor-username: ${{ secrets.HARBOR_USERNAME }}
harbor-password: ${{ secrets.HARBOR_PASSWORD }}
releases-repo-push-token: ${{ secrets.GH_DE_RELEASES_PUSH_TOKEN }}
1 change: 1 addition & 0 deletions src/terrain/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
[]
(load-configuration-from-file)
(icat/configure-icat)
(nats-connect)
(start-nrepl))

(defn repl-init
Expand Down
17 changes: 10 additions & 7 deletions src/terrain/routes/schemas/qms.clj
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,20 @@
:status (describe String "The status of the request")})

(defschema NATSResourceType
{(optional-key :uuid) ResourceID
:name ResourceTypeName
:unit (describe String "The unit of the resource type")})
{(optional-key :uuid) ResourceID
:name ResourceTypeName
:unit (describe String "The unit of the resource type")
:consumable (describe Boolean "True if using the resource consumes it permanently")})

(defschema ResourceTypeForAddonUpdate
{:uuid (describe UUID "The UUID of the new resource type associated with the add-on")})
{:uuid (describe UUID "The UUID of the new resource type associated with the add-on")
:consumable (describe Boolean "True if using the resource consumes it permanently")})

(defschema ResourceTypeForAddonDeletion
{(optional-key :uuid) (describe (maybe String) "The UUID of the resource type associated with the add-on being deleted. Probably blank")
(optional-key :name) (describe (maybe String) "The name of the resource type associated with the add-on being deleted. Probably blank")
(optional-key :unit) (describe (maybe String) "The unit of the resource type assciated wiht the add-on being deleted. Probably blank")})
{(optional-key :uuid) (describe (maybe String) "The UUID of the resource type associated with the add-on being deleted. Probably blank")
(optional-key :name) (describe (maybe String) "The name of the resource type associated with the add-on being deleted. Probably blank")
(optional-key :unit) (describe (maybe String) "The unit of the resource type assciated wiht the add-on being deleted. Probably blank")
(optional-key :consumable) (describe (maybe Boolean) "True if using the resource consumes it permanently. Probably blank")})

(defschema AddOn
{(optional-key :uuid) (describe UUID "The UUID for the add-on")
Expand Down

0 comments on commit 80731b0

Please sign in to comment.