Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 4 additions & 29 deletions pr_body.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,13 @@
This PR was automatically generated by the schema check workflow.

### Changed Files
- `schema/chemi-chet-dev.json`
- `schema/chemi-chet-staging.json`
- `schema/chemi-opera-dev.json`
- `schema/chemi-opera-staging.json`
- `schema/chemi-pfas_cats-dev.json`
- `schema/chemi-pfas_cats-staging.json`
- `schema/chemi-services-dev.json`
- `schema/chemi-amos-dev.json`
- `schema/chemi-resolver-dev.json`
- `schema/chemi-services-staging.json`
- `schema/chemi-webtest-dev.json`
- `schema/chemi-webtest-prod.json`
- `schema/chemi-webtest-staging.json`
- `schema/coverage_baseline.json`

### Endpoint Changes

**Summary:** 2 endpoints added, 1 removed, 1 modified across 2 schemas


#### Breaking Changes

| Schema | Endpoint | Change | Detail |
|--------|----------|--------|--------|
| chemi-chet-staging.json | POST /reaction/reaction_DL | Removed | Endpoint no longer exists |
| chemi-opera-staging.json | POST /api/opera | Modified | body params removed: [smiles] |

#### Non-Breaking Changes

| Schema | Endpoint | Change | Detail |
|--------|----------|--------|--------|
| chemi-chet-staging.json | OPTIONS /reaction/map_DL | Added | New endpoint |
| chemi-chet-staging.json | POST /reaction/reaction_dl | Added | New endpoint |
No endpoint-level changes detected.

### Function Stub Generation
- **Stubs Generated:** 0
Expand All @@ -45,11 +21,10 @@ This PR was automatically generated by the schema check workflow.
### API Coverage
| API | Coverage | Endpoints | Functions |
|-----|----------|-----------|-----------|
| CompTox Dashboard (ct_*) | 100.0% | 135 | 145 (-1) |
| CompTox Dashboard (ct_*) | 100.0% | 135 | 145 |
| Cheminformatics (chemi_*) | 98.9% | 186 | 184 |

### Review Checklist
- [ ] **⚠ BREAKING CHANGES detected** — review removed/modified endpoints above
- [ ] Review schema changes for breaking API modifications
- [ ] Review generated function stubs for correctness
- [ ] Check if any existing package functions need updates
Expand Down
125 changes: 124 additions & 1 deletion schema/chemi-amos-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,18 @@
}
}
},
"dtxsids_search_schema": {
"properties": {
"dtxsids": {
"description": "Array of DTXSIDs as strings.",
"example": [
"DTXSID9020112",
"DTXSID2023985"
],
"type": "array"
}
}
},
"entropy_similarity_request": {
"properties": {
"spectrum_1": {
Expand Down Expand Up @@ -799,6 +811,22 @@
"summary": "Returns a summary of the records in the database, organized by record types, methodologies, and sources."
}
},
"/api/amos/dtxsids/": {
"post": {
"description": "",
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/dtxsids_search_schema"
}
}
],
"responses": {},
"summary": "Returns substance information and record counts for a list of DTXSIDs."
}
},
"/api/amos/entropy_similarity/": {
"post": {
"description": "",
Expand Down Expand Up @@ -1458,7 +1486,7 @@
],
"responses": {
"200": {
"description": "A JSON object with DTXSIDs as keys and an array of highest found entropy similarity scores as the values. The order of values in the array corresponds to their order in the list of user-submitted spectra. If no spectra were found for a given DTXSID, the DTXSID will map to None."
"description": "A JSON object with DTXSIDs as keys and an array of dictionaries as the values. Each dictionary contains a similarity score and the spectrum that had that score. The order of values in the array corresponds to their order in the list of user-submitted spectra. If no spectra were found for a given DTXSID, the result will be None instead of a dictionary."
}
},
"summary": "Given a list of DTXSIDs and a list of mass spectra, return the highest similarity score for each combination of"
Expand Down Expand Up @@ -1720,6 +1748,66 @@
"summary": "Returns a list of release notes for AMOS."
}
},
"/api/amos/retrieve_fact_sheets/": {
"post": {
"description": "",
"parameters": [
{
"description": "List of fact sheet IDs to return information on.",
"in": "query",
"name": "internal_ids",
"required": false,
"type": "array of strings"
}
],
"responses": {
"200": {
"description": "A list of information on the submitted batch of fact sheets."
}
},
"summary": "Returns information on a batch of fact sheets specified by internal ID."
}
},
"/api/amos/retrieve_product_declarations/": {
"post": {
"description": "",
"parameters": [
{
"description": "List of product declaration IDs to return information on.",
"in": "query",
"name": "internal_ids",
"required": false,
"type": "array of strings"
}
],
"responses": {
"200": {
"description": "A list of information on the submitted batch of product declarations."
}
},
"summary": "Returns information on a batch of product declarations specified by internal ID."
}
},
"/api/amos/retrieve_safety_data_sheets/": {
"post": {
"description": "",
"parameters": [
{
"description": "List of safety data sheet IDs to return information on.",
"in": "query",
"name": "internal_ids",
"required": false,
"type": "array of strings"
}
],
"responses": {
"200": {
"description": "A list of information on the submitted batch of safety data sheets."
}
},
"summary": "Returns information on a batch of safety data sheets specified by internal ID."
}
},
"/api/amos/safety_data_sheet_keyset_pagination/{limit}": {
"get": {
"description": "",
Expand Down Expand Up @@ -1814,6 +1902,41 @@
"summary": "Retrieves a list of records from the ElasticSearch database that contain a searched substring"
}
},
"/api/amos/search_for_document_ids/{record_type}": {
"post": {
"description": "matches, and document text.",
"parameters": [
{
"description": "Record type to filter by. Should be either 'Fact Sheet', 'Method', 'Product Declaration', or 'Safety Data Sheet' (capitalization included).",
"in": "path",
"name": "record_type",
"required": true,
"type": "string"
},
{
"description": "Search query parameters. Exact parameters are still in flux, but generally consist of database field names with values and flags for whether to perform exact matches or not.",
"in": "query",
"name": "search_info",
"required": false,
"type": "dict"
},
{
"description": "List of field names in search_info that are fields in the record_info table in PostgreSQL.",
"in": "query",
"name": "record_info_fields",
"type": "array of strings"
},
{
"description": "List of field names in search_info that are fields in the fact_sheets table in PostgreSQL.",
"in": "query",
"name": "table_fields",
"type": "array of strings"
}
],
"responses": {},
"summary": "Runs searches for document IDs that pass a list of submitted filters, including document metadata, substance"
}
},
"/api/amos/spectral_entropy/": {
"post": {
"description": "",
Expand Down
6 changes: 3 additions & 3 deletions schema/chemi-resolver-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -3227,15 +3227,15 @@
"type": "integer",
"format": "int64"
},
"pageable": {
"$ref": "#/components/schemas/PageableObject"
},
"first": {
"type": "boolean"
},
"last": {
"type": "boolean"
},
"pageable": {
"$ref": "#/components/schemas/PageableObject"
},
"size": {
"type": "integer",
"format": "int32"
Expand Down
6 changes: 3 additions & 3 deletions schema/chemi-services-staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -734,14 +734,14 @@
"message": {
"type": "string"
},
"modelName": {
"type": "string"
},
"dataColumns": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PassedColumn"
}
},
"modelName": {
"type": "string"
}
}
},
Expand Down
12 changes: 6 additions & 6 deletions schema/chemi-webtest-staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -784,13 +784,13 @@
"description": {
"type": "string"
},
"binary": {
"type": "boolean"
},
"valueDigits": {
"type": "integer",
"format": "int32"
},
"binary": {
"type": "boolean"
},
"units": {
"type": "string"
},
Expand Down Expand Up @@ -862,9 +862,6 @@
"clusterModelLC50": {
"$ref": "#/components/schemas/ClusterModel"
},
"moa": {
"type": "string"
},
"moascore": {
"type": "string"
},
Expand All @@ -876,6 +873,9 @@
},
"lc50ScoreMsg": {
"type": "string"
},
"moa": {
"type": "string"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion schema/coverage_baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"chemi_coverage": 98.9,
"chemi_endpoints": 186,
"chemi_functions": 184,
"timestamp": "2026-04-08T10:17:14Z"
"timestamp": "2026-04-10T10:16:33Z"
}
19 changes: 1 addition & 18 deletions schema_diff_report.md
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
### Endpoint Changes

**Summary:** 2 endpoints added, 1 removed, 1 modified across 2 schemas


#### Breaking Changes

| Schema | Endpoint | Change | Detail |
|--------|----------|--------|--------|
| chemi-chet-staging.json | POST /reaction/reaction_DL | Removed | Endpoint no longer exists |
| chemi-opera-staging.json | POST /api/opera | Modified | body params removed: [smiles] |

#### Non-Breaking Changes

| Schema | Endpoint | Change | Detail |
|--------|----------|--------|--------|
| chemi-chet-staging.json | OPTIONS /reaction/map_DL | Added | New endpoint |
| chemi-chet-staging.json | POST /reaction/reaction_dl | Added | New endpoint |
No endpoint-level changes detected.