Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PoC] [Do Not Merge] Make policy management APIs separate from IRC spec #856

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
24 changes: 22 additions & 2 deletions api/iceberg-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,43 @@ dependencies {
implementation("com.fasterxml.jackson.core:jackson-databind")
}

val policyManagementModels =
listOf(
"CatalogIdentifier",
"CreatePolicyRequest",
"EntityIdentifier",
"LoadPolicyResult",
"NamespaceIdentifier",
"Policy",
"PolicyContent",
"SetPolicyRequest",
"TableLikeIdentifier",
"UnsetPolicyRequest",
"UpdatePolicyRequest",
)
.joinToString(",")

openApiGenerate {
inputSpec = "$rootDir/spec/rest-catalog-open-api.yaml"
inputSpec = "$rootDir/spec/polaris-catalog-open-api.yaml"
generatorName = "jaxrs-resteasy"
outputDir = "$projectDir/build/generated"
apiPackage = "org.apache.polaris.service.catalog.api"
modelPackage = "org.apache.polaris.service.types"
ignoreFileOverride = "$rootDir/.openapi-generator-ignore"
removeOperationIdPrefix = true
templateDir = "$rootDir/server-templates"
globalProperties.put("apis", "")
globalProperties.put("models", "false")
globalProperties.put("models", policyManagementModels)
globalProperties.put("apiDocs", "false")
globalProperties.put("modelTests", "false")
configOptions.put("resourceName", "catalog")
configOptions.put("useTags", "true")
configOptions.put("useBeanValidation", "false")
configOptions.put("sourceFolder", "src/main/java")
configOptions.put("useJakartaEe", "true")
configOptions.put("generateBuilders", "true")
configOptions.put("generateConstructorWithAllArgs", "true")
configOptions.put("openApiNullable", "false")
openapiNormalizer.put("REFACTOR_ALLOF_WITH_PROPERTIES_ONLY", "true")
additionalProperties.put("apiNamePrefix", "IcebergRest")
additionalProperties.put("apiNameSuffix", "")
Expand Down
Loading
Loading