From 112679450f1d276e4f550400e6113fb095c4bf34 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sun, 5 Apr 2026 23:33:50 +0100 Subject: [PATCH] fields should be optional patch bump --- pyproject.toml | 2 +- src/vmr_http/models/eq.py | 14 +++++++------- uv.lock | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 49f880e..d172b5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "vmr-http" -version = "0.7.0" +version = "0.7.1" description = "HTTP API for controlling Voicemeeter" readme = "README.md" authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] diff --git a/src/vmr_http/models/eq.py b/src/vmr_http/models/eq.py index 8ab951d..76906a4 100644 --- a/src/vmr_http/models/eq.py +++ b/src/vmr_http/models/eq.py @@ -8,15 +8,15 @@ from pydantic import BaseModel, Field class EQParams(BaseModel): """Parameters for an equalizer.""" - on: Optional[bool] = Field(description='Whether the equalizer is enabled or not.') - ab: Optional[bool] = Field(description='Whether the equalizer is in mode A/B.') + on: Optional[bool] = Field(None, description='Whether the equalizer is enabled or not.') + ab: Optional[bool] = Field(None, description='Whether the equalizer is in mode A/B.') class EQChannelCellParams(BaseModel): """Parameters for an equalizer channel.""" - on: Optional[bool] = Field(description='Whether the equalizer channel is enabled or not.') - type: Optional[int] = Field(ge=0, le=6, description='Type of the equalizer channel.') - f: Optional[float] = Field(ge=20.0, le=20000.0, description='Frequency of the equalizer channel.') - gain: Optional[float] = Field(ge=-36.0, le=18.0, description='Gain of the equalizer channel.') - q: Optional[float] = Field(ge=0.3, le=100.0, description='Q factor of the equalizer channel.') + on: Optional[bool] = Field(None, description='Whether the equalizer channel is enabled or not.') + type: Optional[int] = Field(None, ge=0, le=6, description='Type of the equalizer channel.') + f: Optional[float] = Field(None, ge=20.0, le=20000.0, description='Frequency of the equalizer channel.') + gain: Optional[float] = Field(None, ge=-36.0, le=18.0, description='Gain of the equalizer channel.') + q: Optional[float] = Field(None, ge=0.3, le=100.0, description='Q factor of the equalizer channel.') diff --git a/uv.lock b/uv.lock index a4a65fe..9cf25af 100644 --- a/uv.lock +++ b/uv.lock @@ -1151,7 +1151,7 @@ wheels = [ [[package]] name = "vmr-http" -version = "0.7.0" +version = "0.7.1" source = { editable = "." } dependencies = [ { name = "fastapi" },