Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

String patterns not recognized in jaxrs Path #418

Open
Kaiser1989 opened this issue Jan 13, 2020 · 2 comments
Open

String patterns not recognized in jaxrs Path #418

Kaiser1989 opened this issue Jan 13, 2020 · 2 comments

Comments

@Kaiser1989
Copy link

Kaiser1989 commented Jan 13, 2020

Given following raml:

#%RAML 1.0
title: GitHub API
version: v3
baseUri: https://api.github.com
/ViewingSession:
  /{viewingSessionId}:
    /Attachments:
      uriParameters:
        viewingSessionId:
          type: string
          pattern: ^(;[^/;]+)*$
      put:

should create a path like:

@Path("/ViewingSession/{viewingSessionId:(;[^/;]+)*}/Attachments)

The regex is not shown in path attribute. I added a pull request that fixes this problem (added a unit test under ResourceBuilderTestV10.java)

Kaiser1989 added a commit to Kaiser1989/raml-for-jax-rs that referenced this issue Jan 13, 2020
@jpbelang
Copy link
Contributor

I'll check it tonight.

@jpbelang
Copy link
Contributor

Side note from the spec: regexp in RAML are Ecma regexp. There are some differences with java regexp. It not have any real impact in your application.

jpbelang added a commit that referenced this issue Jan 19, 2020
Issue #418: String patterns not recognized in jaxrs Path
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants