Skip to content

Commit 87f1ef3

Browse files
NRL-1050 Fix sonarcloud issues
1 parent 2d6df20 commit 87f1ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layer/nrlf/core/validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def _validate_type(self, model: DocumentReference):
370370
issue_code="invalid",
371371
error_code="INVALID_RESOURCE",
372372
diagnostics=f"Invalid type coding length: {len(model.type.coding)} Type Coding must only contain a single value",
373-
field=f"type.coding",
373+
field="type.coding",
374374
)
375375
return
376376

@@ -478,7 +478,7 @@ def _validate_type_category_mapping(self, model: DocumentReference):
478478
issue_code="value",
479479
error_code="INVALID_RESOURCE",
480480
diagnostics=f"The Category code of the provided document '{category_id}' must match the allowed category for pointer type '{type_id}' with a category value of '{type_category}'",
481-
field=f"category.coding[0].code",
481+
field="category.coding[0].code",
482482
)
483483

484484
def _validate_content_extension(self, model: DocumentReference):

0 commit comments

Comments
 (0)