Closed LinuxSuRen closed 3 months ago
Coverage variation | Diff coverage |
---|---|
:white_check_mark: -0.03% | :white_check_mark: 100.00% |
:rocket: Don’t miss a bit, follow what’s new on Codacy.
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
There are 20 test cases, failed count 0:
Reported by api-testing.
1 new problem were found
Inspection name | Severity | Problems |
---|---|---|
Comment of exported element starts with the incorrect name |
◽️ Notice | 1 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked ☁️ View the detailed Qodana report
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Related to #498
Adds JSON schema for the mock type and updates the
types.go
file to include JSON struct tags.docs/api-testing-mock-schema.json
that defines the JSON schema for the mock server. This schema includes definitions for objects, items, and webhooks, with detailed properties and required fields to accurately represent the structure and types defined inpkg/mock/types.go
.pkg/mock/types.go
file by adding JSON struct tags to all fields, ensuring that each field is correctly annotated for both YAML and JSON serialization. This change aligns the codebase with the newly created JSON schema and facilitates the generation of accurate JSON representations of the mock types.For more details, open the Copilot Workspace session.