-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(acquisition): Proposal update for next version of API #2739
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request updates the API specifications for the journey registration service from OpenAPI version 3.0.3 to 3.1. The changes focus on refining the API documentation, restructuring response schemas, and improving error handling. Key modifications include renaming Changes
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
api/specs/api-v3.1.yaml (2)
1236-1322
: LGTM! Well-structured rejection reasons with clear documentation.The new
rejected_reasons
schema effectively consolidates error reporting while maintaining backward compatibility. The comprehensive documentation and logical grouping of reasons make the API more maintainable.Consider adding deprecation notices with timeline for the labels marked with 📦:
terms_violation_error
fraud_error
anomaly_error
🧰 Tools
🪛 yamllint (1.35.1)
[error] 1250-1250: trailing spaces
(trailing-spaces)
[error] 1271-1271: trailing spaces
(trailing-spaces)
[error] 1306-1306: trailing spaces
(trailing-spaces)
[error] 1322-1322: trailing spaces
(trailing-spaces)
1250-1250
: Fix trailing spaces in the YAML file.There are trailing spaces on lines 1250, 1271, 1306, and 1322 that should be removed to maintain consistent formatting.
Also applies to: 1271-1271, 1306-1306, 1322-1322
🧰 Tools
🪛 yamllint (1.35.1)
[error] 1250-1250: trailing spaces
(trailing-spaces)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
api/specs/api-v3.1.yaml
(3 hunks)
🧰 Additional context used
🪛 yamllint (1.35.1)
api/specs/api-v3.1.yaml
[error] 1250-1250: trailing spaces
(trailing-spaces)
[error] 1271-1271: trailing spaces
(trailing-spaces)
[error] 1306-1306: trailing spaces
(trailing-spaces)
[error] 1322-1322: trailing spaces
(trailing-spaces)
🔇 Additional comments (1)
api/specs/api-v3.1.yaml (1)
1226-1235
: LGTM! Status enum simplification improves API clarity.
The simplified status enum with four clear states (pending
, accepted
, rejected
, canceled
) makes the API more intuitive and easier to understand. This change aligns well with the PR objective to simplify the API.
#fixes (issues)
Description
Ceci est une proposition de simplification de l'API trajet afin de réduire le nombre de champs retourner par l'API trajet:
status
+fraud_error_labels
+anomaly_error_details
+terms_violation_details
status
+rejected_reasons
C'est bien entendu une proposition pour une prochaine mise à jour majeure et nécessitant vos contribution.
Checklist
/api/specs
[ ] ajout ou mise à jour des tests unitaires[ ] ajout ou mise à jour des tests d'intégrationMerge
🚨 Do not merge before change
api-v3.1.yaml
toapi-vX.0.yml
🚨Je squash la PR et vérifie que le message de commit utilise la convention d'Angular :
Voir la convention de message de commit...
Types de commit
Le scope (optionnel) précise le module ou le composant impacté par le commit.
Summary by CodeRabbit
New Features
accepted
andrejected
.rejected_reasons
, improving clarity on rejection categories.Documentation