Skip to content

Commit

Permalink
Merge pull request #123 from outfoxx/fix/sunday-ann-targets
Browse files Browse the repository at this point in the history
Allow Method & Resource annotations to be applied to Traits and Resource Types
  • Loading branch information
kdubb authored Dec 6, 2024
2 parents ad53ccc + d59ca41 commit c4fd9dc
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions generator/src/main/resources/sunday.raml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ annotationTypes:

group:
type: string
allowedTargets: [Resource]
allowedTargets: [Resource, ResourceType]

kotlinPackage:
type: string
Expand Down Expand Up @@ -177,28 +177,28 @@ annotationTypes:

asynchronous:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
reactive:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]

sse:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
sse:client:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
sse:server:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]

eventSource:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
eventStream:
type: string
enum: [simple, discriminated]
allowedTargets: [Method]
allowedTargets: [Method, Trait]

problemBaseUri:
type: string
Expand All @@ -211,40 +211,40 @@ annotationTypes:
allowedTargets: [API, Extension, Library, Overlay]
problems:
type: ResponseProblemCodes
allowedTargets: [Method]
allowedTargets: [Method, Trait]

requestOnly:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
responseOnly:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]

nullify:
type: Nullify
allowedTargets: [Method]
allowedTargets: [Method, Trait]

exclude:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
exclude:client:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
exclude:server:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]

jsonBody:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
jsonBody:client:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]
jsonBody:server:
type: boolean
allowedTargets: [Method]
allowedTargets: [Method, Trait]

jaxrsContext:
type: JaxrsContextType[]
uniqueItems: true
allowedTargets: [Method]
allowedTargets: [Method, Trait]

0 comments on commit c4fd9dc

Please sign in to comment.