Skip to content

Conversation

@hongwei1
Copy link

No description provided.

- Introduced `AccessChecker` for enforcing access checks based on user roles and operation IDs.
- Added core model classes: `ApiRole`, `ErrorDoc`, `HttpMethod`, `RequestContext`, `RequiredRole`, `ResourceDocJson`, and `Tag`.
- Implemented registries for resource documentation and roles with `ResourceDocRegistry` and `RoleRegistry`.
- Developed exporters for Markdown and JSON formats: `MarkdownExporter`, `OBPLikeJsonExporter`, and `OpenApiLikeJsonExporter`.
- Included tests for resource documentation structure and exporter functionality.
…ing checks

- Introduced `.scalafmt.conf` for consistent code formatting with scalafmt version 3.7.17.
- Updated CI workflow to include formatting checks for all Scala versions.
- Added sbt-scalafmt plugin to project dependencies for formatting enforcement.
- Refactored comments in various model files for improved clarity and consistency.
- Replaced POM customization with a direct project description assignment for clarity.
- Ensured the description is now used in the generated POM for Maven Central.
…with corresponding tests

- Implemented `MarkdownExporter` for generating Markdown documentation from resource docs.
- Developed `OBPLikeJsonExporter` to produce JSON documents mirroring OBP-API's ResourceDoc response structure.
- Created `OpenApiLikeJsonExporter` for generating OpenAPI-like JSON documents.
- Added unit tests for each exporter to ensure correct functionality and output formatting.
- Introduced `OBPResourceDocJson` for generating Draft-04 JSON Schema from case classes.
- Updated `ResourceDocJson` to utilize Circe JSON types for request and response bodies.
- Added unit tests in `OBPResourceDocJsonSpec` to validate schema generation for sample case classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant