Skip to content

Conversation

@bjthehun
Copy link

@bjthehun bjthehun commented Dec 9, 2025

Clients make a GET request on the path /vsum/views/types/metamodel, and need to provide the view type as header.
Servers respond with a JSON serialization of an EPackage.

Implemented in the server with the ViewTypeMetamodelEndpoint, and in the client.

Clients make a `GET` request on the path `/vsum/views/types/metamodel`,
and need to provide the view type as header.
Servers respond with a JSON serialization of an `EPackage`.

Implemented in the server with the ViewTypeMetamodelEndpoint, and in the client.
@bjthehun bjthehun requested a review from a team as a code owner December 9, 2025 10:02
@bjthehun bjthehun marked this pull request as draft December 9, 2025 10:02
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

checkstyle

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck> reported by reviewdog 🐶
Missing a Javadoc comment.


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck> reported by reviewdog 🐶
'member def modifier' has incorrect indentation level 4, expected level should be 2.


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck> reported by reviewdog 🐶
'ctor def modifier' has incorrect indentation level 4, expected level should be 2.


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 100 characters (found 114).

public VitruvJavaHttpServer(String host, int port, List<PathEndpointCollector> endpoints) throws IOException {


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck> reported by reviewdog 🐶
'ctor def modifier' has incorrect indentation level 4, expected level should be 2.

public VitruvJavaHttpServer(String host, int port, List<PathEndpointCollector> endpoints) throws IOException {


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

public VitruvJavaHttpServer(String host, int port, List<PathEndpointCollector> endpoints) throws IOException {


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck> reported by reviewdog 🐶
Extra separation in import group before 'org.eclipse.emf.ecore.EPackage'


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck> reported by reviewdog 🐶
Extra separation in import group before 'com.fasterxml.jackson.core.JsonProcessingException'


⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck> reported by reviewdog 🐶
Wrong lexicographical order for 'com.fasterxml.jackson.core.JsonProcessingException' import. Should be before 'org.eclipse.emf.ecore.resource.ResourceSet'.


⚠️ [checkstyle] reported by reviewdog 🐶
'}' at column 5 should be on the same line as the next part of a multi-block statement (one that directly contains multiple blocks: if/else-if/else, do/while or try/catch/finally).

@@ -1,62 +1,65 @@
package tools.vitruv.framework.remote.server.http.java;

import static java.net.HttpURLConnection.*;
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.AvoidStarImportCheck> reported by reviewdog 🐶
Using the '.' form of import should be avoided - java.net.HttpURLConnection..

this.endpoints = endpoints;
}
RequestHandler(PathEndpointCollector endpoints) {
this.endpoints = endpoints;
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck> reported by reviewdog 🐶
'ctor def' child has incorrect indentation level 6, expected level should be 4.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 30%)

See analysis details on SonarQube Cloud

@bjthehun
Copy link
Author

bjthehun commented Dec 9, 2025

@HansMartinA Should I close this PR?
Do you want to open a draft PR for #108_expose_view_type_metamodel?

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