generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use
serviceinfo
to determine services to compile (#178)
Use `serviceinfo` to determine services to compile instead of directly inspecting service definition for `@protocol` or `@graphql` annotations, since this logic is duplicated in `@sap/cds`.
- Loading branch information
Showing
6 changed files
with
135 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,49 @@ | ||
service NotAnnotated { | ||
context protocols { | ||
entity A { | ||
key id : UUID; | ||
} | ||
} | ||
|
||
service NotAnnotated { | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: 'none' | ||
service AnnotatedWithAtProtocolNone { | ||
entity A { | ||
key id : UUID; | ||
} | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: 'odata' | ||
service AnnotatedWithNonGraphQL { | ||
entity A { | ||
key id : UUID; | ||
} | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@graphql | ||
service AnnotatedWithAtGraphQL { | ||
entity A { | ||
key id : UUID; | ||
} | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: 'graphql' | ||
service AnnotatedWithAtProtocolString { | ||
entity A { | ||
key id : UUID; | ||
} | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: ['graphql'] | ||
service AnnotatedWithAtProtocolStringList { | ||
entity A { | ||
key id : UUID; | ||
} | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: [{kind: 'graphql'}] | ||
service AnnotatedWithAtProtocolObjectList { | ||
entity A { | ||
key id : UUID; | ||
} | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: { graphql } | ||
service AnnotatedWithAtProtocolObjectWithKey { | ||
entity A as projection on protocols.A; | ||
} | ||
|
||
@protocol: { graphql: 'dummy' } | ||
service AnnotatedWithAtProtocolObjectWithKeyAndValue { | ||
entity A as projection on protocols.A; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters