Skip to content
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

Feat/Ajout des champ de nack dans RC-REF #34

Merged
merged 20 commits into from
Mar 1, 2024
Merged

Conversation

saveliy-sviridov
Copy link
Contributor

@saveliy-sviridov saveliy-sviridov commented Feb 6, 2024

Ajout des champs

  • refused
  • infoDistributionID

au schema RC-REF, et modification des classes associés (Reference et ReferenceWrapperBuilder)

Copy link

github-actions bot commented Feb 6, 2024

File Coverage [58.4%]
ReferenceWrapperBuilder.java 89.16% 🍏
Reference.java 41.94%
Total Project Coverage 64.63% 🍏

Copy link
Collaborator

@romainfd romainfd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small updates to order and builder logic

@@ -26,7 +26,7 @@ public class ReferenceWrapperBuilder {

public ReferenceWrapperBuilder(DistributionElement distributionElement, String referencedDistributionId) {
this.distributionElement = distributionElement;
this.reference = new Reference().distributionID(referencedDistributionId);
this.reference = new Reference().distributionID(referencedDistributionId).infoDistributionID(null).refused(false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comme échangé, enlever ces setters, créer les fonctions de chainage du builders ici et reprendre le build() pour controler != true

generator/input/common.openapi.yaml Outdated Show resolved Hide resolved
src/main/resources/json-schema/RC-REF.schema.json Outdated Show resolved Hide resolved
@romainfd romainfd changed the base branch from main to develop February 16, 2024 17:12
Copy link
Collaborator

@romainfd romainfd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Comment on lines +37 to +40
public ReferenceWrapperBuilder infoDistributionID(String infoDistributionID) {
this.reference.setInfoDistributionID(infoDistributionID);
return this;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On aurait limite pu mettre refused = true dans ce cas là aussi par cohérence et ne pas mettre de builder sur refused vu que les 2 vont toujours ensemble

@romainfd romainfd merged commit 3094215 into develop Mar 1, 2024
1 check failed
@romainfd romainfd deleted the feat/nack-and-info branch March 1, 2024 20:56
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.

2 participants