Skip to content

Commit

Permalink
Make /examples also omit null values from JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
woodthom2 committed Aug 28, 2024
1 parent 2e709f2 commit 2f1a8f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harmony_api/routers/text_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def match(


@router.post(
path="/examples", response_model=List[Instrument], status_code=status.HTTP_200_OK
path="/examples", response_model=List[Instrument], status_code=status.HTTP_200_OK, response_model_exclude_none=True
)
def get_example_instruments() -> List[Instrument]:
"""
Expand Down

0 comments on commit 2f1a8f7

Please sign in to comment.