Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions conjure-api/src/main/conjure/conjure-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ types:
alias: string
ErrorCode:
values:
- INVALID_ARGUMENT
- UNAUTHENTICATED
- PERMISSION_DENIED
- INVALID_ARGUMENT
- NOT_FOUND
- CONFLICT
- REQUEST_ENTITY_TOO_LARGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private static void validateTypeDefinition(TypeDefinition typeDef,

typeDef.accept(new TypeDefinition.Visitor<Void>() {
@Override
public Void visitAlias(AliasDefinition value) {
public Void visitAlias(AliasDefinition _value) {
AliasDefinition aliasDef = typeDef.accept(TypeDefinitionVisitor.ALIAS);
if (recursivelyFindIllegalKeys(aliasDef.getAlias(), definitionMap, false)) {
throw new IllegalStateException(
Expand All @@ -353,7 +353,7 @@ public Void visitAlias(AliasDefinition value) {
}

@Override
public Void visitObject(ObjectDefinition value) {
public Void visitObject(ObjectDefinition _value) {
ObjectDefinition objectDefinition = typeDef.accept(TypeDefinitionVisitor.OBJECT);
objectDefinition.getFields().stream()
.filter(fieldDefinition -> recursivelyFindIllegalKeys(
Expand All @@ -368,7 +368,7 @@ public Void visitObject(ObjectDefinition value) {
}

@Override
public Void visitUnion(UnionDefinition value) {
public Void visitUnion(UnionDefinition _value) {
UnionDefinition unionDefinition = typeDef.accept(TypeDefinitionVisitor.UNION);
unionDefinition.getUnion().stream()
.filter(fieldDefinition -> recursivelyFindIllegalKeys(
Expand All @@ -383,12 +383,12 @@ public Void visitUnion(UnionDefinition value) {
}

@Override
public Void visitEnum(EnumDefinition value) {
public Void visitEnum(EnumDefinition _value) {
return null;
}

@Override
public Void visitUnknown(String unknownType) {
public Void visitUnknown(String _unknownType) {
return null;
}
});
Expand Down
3 changes: 1 addition & 2 deletions docs/spec/conjure_definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,8 @@ docs | [DocString][] | Documentation for the type. [CommonMark syntax](http://sp
## ErrorCode
[ErrorCode]: #errorcode
A field describing the error category. MUST be one of the following strings, with HTTP status codes defined in the [wire spec](/docs/spec/wire.md#34-conjure-errors):
* INVALID_ARGUMENT
* UNAUTHENTICATED
* PERMISSION_DENIED
* INVALID_ARGUMENT
* NOT_FOUND
* CONFLICT
* REQUEST_ENTITY_TOO_LARGE
Expand Down
3 changes: 1 addition & 2 deletions docs/spec/wire.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ In order to send a Conjure error, servers must serialize the error using the [JS

Conjure Error code | HTTP Status code |
-------------------------- | ---------------- |
INVALID_ARGUMENT | 400
UNAUTHENTICATED | 401
PERMISSION_DENIED | 403
INVALID_ARGUMENT | 400
NOT_FOUND | 404
CONFLICT | 409
REQUEST_ENTITY_TOO_LARGE | 413
Expand Down