Skip to content

Commit

Permalink
added optional params for default template fields on resource
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuliano committed Sep 8, 2024
1 parent 5e46f85 commit 43405b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions deps/pkl/Resource.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ hidden isValidId = (str) ->
else
throw("Error: Invalid name: The name contains invalid characters. Please ensure it only includes alphanumeric characters (letters and numbers) and is not empty.")

id: String(isValidId)
name: String
description: String
category: String(isValidId)
id: String(isValidId) = "helloWorld"
name: String?
description: String?
category: String(isValidId)?
requires: Listing<String(isValidId)>?
run: Listing<ResourceAction>?

Expand All @@ -32,8 +32,8 @@ class ResourceAction {
else
throw("Error: Invalid configuration string: The input string does not match any of the expected formats: ENV:, FILE:, DIR:, URL:, EXEC:. Please ensure that the string starts with one of these prefixes, optionally preceded by an exclamation mark to indicate negation (e.g. !ENV:, !FILE:, etc.).")

name: String
exec: String
name: String?
exec: String?
settings: Project.Settings?
skip: Listing<String(isValidPrefix)>?
preflight: Listing<String(isValidPrefix)>?
Expand Down

0 comments on commit 43405b5

Please sign in to comment.