Skip to content

Commit

Permalink
Fix api spec paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherrmann committed Sep 21, 2023
1 parent cec2066 commit ba806db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/hyp3_api/api-spec/job_parameters.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ components:
enum:
- {{ job_type }}
name:
$ref: "./openapi-spec.yml#components/schemas/name"
$ref: "./openapi-spec.yml#/components/schemas/name"
job_parameters:
$ref: "#/components/schemas/{{ job_type }}Parameters"

Expand Down
10 changes: 5 additions & 5 deletions apps/api/src/hyp3_api/api-spec/openapi-spec.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ paths:
- name: job_type
in: query
schema:
$ref: "./job_parameters.yml#components/schemas/job_type"
$ref: "./job_parameters.yml#/components/schemas/job_type"
- name: start_token
in: query
schema:
Expand Down Expand Up @@ -138,7 +138,7 @@ components:
quota:
$ref: "#/components/schemas/quota"
job_names:
$ref: "#components/schemas/job_names_list"
$ref: "#/components/schemas/job_names_list"

quota:
description: Containes the limit of jobs per month and the amount remaining for a user.
Expand Down Expand Up @@ -168,7 +168,7 @@ components:
minItems: 1
maxItems: 200
items:
$ref: "./job_parameters.yml#components/schemas/new_job"
$ref: "./job_parameters.yml#/components/schemas/new_job"

list_of_jobs:
type: array
Expand Down Expand Up @@ -254,9 +254,9 @@ components:
user_id:
$ref: "#/components/schemas/user_id"
job_type:
$ref: "./job_parameters.yml#components/schemas/job_type"
$ref: "./job_parameters.yml#/components/schemas/job_type"
job_parameters:
$ref: "./job_parameters.yml#components/schemas/job_parameters"
$ref: "./job_parameters.yml#/components/schemas/job_parameters"
request_time:
$ref: "#/components/schemas/datetime"
status_code:
Expand Down

0 comments on commit ba806db

Please sign in to comment.