commercetools / commercetools/rest-modeling-framework

Validate uri parameters against their uri template

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently we don't raise a validation error on:
```yaml
/{resourceKey}:
uriParameters:
key: string
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the validation logic for RAML uriParameters and URI templates, then reproduce the YAML example from this issue. Trace how the `{resourceKey}` template is compared with the declared `key` parameter; done means the mismatch raises a validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.