Skip to content

Commit

Permalink
fix: add required types to admin samples response (#336)
Browse files Browse the repository at this point in the history
Co-authored-by: Nina Bernick <[email protected]>
  • Loading branch information
ninabernick and Nina Bernick authored Apr 25, 2024
1 parent 500a283 commit 9cbf1cb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 14 deletions.
26 changes: 23 additions & 3 deletions json-schemas/adminSamplesResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@
"namespace": {
"type": "string"
}
}
},
"required": [
"id",
"protocol",
"path",
"namespace"
]
},
"r2File": {
"type": "object",
Expand All @@ -79,7 +85,13 @@
"namespace": {
"type": "string"
}
}
},
"required": [
"id",
"protocol",
"path",
"namespace"
]
},
"taxon": {
"type": "object",
Expand Down Expand Up @@ -107,10 +119,18 @@
"namespace": {
"type": "string"
},
"protocol": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"required": [
"path",
"namespace",
"id"
]
}
}
},
Expand Down
1 change: 1 addition & 0 deletions sample-responses/adminSamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"primerFile": {
"file": {
"path": "samples/1224/33171/fastqs/Primer_K.bed",
"protocol": "s3",
"namespace": "idseq-samples-staging",
"id": "397ae4c0-2c88-525a-8f85-0a00e338adf0"
}
Expand Down
23 changes: 12 additions & 11 deletions tests/__snapshots__/UnifiedSchema.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4759,23 +4759,24 @@ type query_adminSamples_items_sequencingReads_edges_items_node_primerFile {
}
type query_adminSamples_items_sequencingReads_edges_items_node_primerFile_file {
id: String
namespace: String
path: String
id: String!
namespace: String!
path: String!
protocol: String
}
type query_adminSamples_items_sequencingReads_edges_items_node_r1File {
id: String
namespace: String
path: String
protocol: String
id: String!
namespace: String!
path: String!
protocol: String!
}
type query_adminSamples_items_sequencingReads_edges_items_node_r2File {
id: String
namespace: String
path: String
protocol: String
id: String!
namespace: String!
path: String!
protocol: String!
}
type query_adminSamples_items_sequencingReads_edges_items_node_taxon {
Expand Down

0 comments on commit 9cbf1cb

Please sign in to comment.