Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest
pip install ruff==0.15.22 pytest
- name: CI
run: make ci
4 changes: 2 additions & 2 deletions protovalidate/quickstart-es/finish/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ clean: true
inputs:
- directory: proto
plugins:
- remote: buf.build/bufbuild/es:v2.5.1
- remote: buf.build/bufbuild/es:v2.15.0
out: src/gen
opt:
- target=ts
- import_extension=js
include_imports: true
- map_imports=buf/validate/:@bufbuild/protovalidate/gen
40 changes: 24 additions & 16 deletions protovalidate/quickstart-es/finish/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions protovalidate/quickstart-es/finish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"license": "Apache-2.0",
"dependencies": {
"@bufbuild/protobuf": "^2.5.1",
"@bufbuild/protovalidate": "^1.0.0"
"@bufbuild/protobuf": "^2.15.0",
"@bufbuild/protovalidate": "^1.3.0"
},
"devDependencies": {
"@types/node": "^24.13.1",
Expand Down
4,761 changes: 0 additions & 4,761 deletions protovalidate/quickstart-es/finish/src/gen/buf/validate/validate_pb.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.5.1 with parameter "target=ts,import_extension=js"
// @generated by protoc-gen-es v2.15.0 with parameter "target=ts,import_extension=js,map_imports=buf/validate/:@bufbuild/protovalidate/gen"
// @generated from file bufbuild/weather/v1/weather_service.proto (package bufbuild.weather.v1, syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
import { file_buf_validate_validate } from "../../../buf/validate/validate_pb.js";
import { file_buf_validate_validate } from "@bufbuild/protovalidate/gen/buf/validate/validate_pb.js";
import type { Timestamp } from "@bufbuild/protobuf/wkt";
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
import type { Message } from "@bufbuild/protobuf";
Expand Down Expand Up @@ -57,7 +57,7 @@ export type GetWeatherRequest = Message<"bufbuild.weather.v1.GetWeatherRequest">
*
* @generated from field: google.protobuf.Timestamp forecast_date = 3;
*/
forecastDate?: Timestamp;
forecastDate?: Timestamp | undefined;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/quickstart-es/finish/src/weather.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test("latitude too high", () => {
const violations = result.violations ?? [];
expect(violations.length).toEqual(1);
expect(violations[0].message).toEqual(
"value must be greater than or equal to -90 and less than or equal to 90",
"must be greater than or equal to -90 and less than or equal to 90",
);
});

Expand All @@ -63,7 +63,7 @@ test("latitude too low", () => {
const violations = result.violations ?? [];
expect(violations.length).toEqual(1);
expect(violations[0].message).toEqual(
"value must be greater than or equal to -90 and less than or equal to 90",
"must be greater than or equal to -90 and less than or equal to 90",
);
});

Expand Down
2 changes: 1 addition & 1 deletion protovalidate/quickstart-es/start/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ clean: true
inputs:
- directory: proto
plugins:
- remote: buf.build/bufbuild/es:v2.5.1
- remote: buf.build/bufbuild/es:v2.15.0
out: src/gen
opt:
- target=ts
Expand Down
8 changes: 4 additions & 4 deletions protovalidate/quickstart-es/start/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protovalidate/quickstart-es/start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@bufbuild/protobuf": "^2.5.1"
"@bufbuild/protobuf": "^2.15.0"
},
"devDependencies": {
"@types/node": "^24.13.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.5.1 with parameter "target=ts,import_extension=js"
// @generated by protoc-gen-es v2.15.0 with parameter "target=ts,import_extension=js"
// @generated from file bufbuild/weather/v1/weather_service.proto (package bufbuild.weather.v1, syntax proto3)
/* eslint-disable */

Expand Down Expand Up @@ -56,7 +56,7 @@ export type GetWeatherRequest = Message<"bufbuild.weather.v1.GetWeatherRequest">
*
* @generated from field: google.protobuf.Timestamp forecast_date = 3;
*/
forecastDate?: Timestamp;
forecastDate?: Timestamp | undefined;
};

/**
Expand Down
4 changes: 2 additions & 2 deletions protovalidate/quickstart-es/start/src/weather.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test("latitude too high", () => {
const violations = result.violations ?? [];
expect(violations.length).toEqual(1);
expect(violations[0].message).toEqual(
"value must be greater than or equal to -90 and less than or equal to 90",
"must be greater than or equal to -90 and less than or equal to 90",
);
});

Expand All @@ -63,7 +63,7 @@ test("latitude too low", () => {
const violations = result.violations ?? [];
expect(violations.length).toEqual(1);
expect(violations[0].message).toEqual(
"value must be greater than or equal to -90 and less than or equal to 90",
"must be greater than or equal to -90 and less than or equal to 90",
);
});

Expand Down
Loading