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

[Fix_#449] Checking pattern #451

Merged
merged 1 commit into from
Nov 4, 2024
Merged

Conversation

fjtirado
Copy link
Collaborator

@fjtirado fjtirado commented Nov 4, 2024

Fix #449

private static final String PATTERN = "pattern";

private enum Format {
URI_TEMPLATE("^[A-Za-z][A-Za-z0-9+\\-.]*://.*");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to add adittional formats when needed.
Right now, the only format that is used by the spec and not handle is json-pointer, but I could not find a good one for this ABNF yet

  json-pointer    = *( "/" reference-token )
      reference-token = *( unescaped / escaped )
      unescaped       = %x00-2E / %x30-7D / %x7F-10FFFF
         ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
      escaped         = "~" ( "0" / "1" )
        ; representing '~' and '/', respectively


private static TaskExecutorFactory instance = new DefaultTaskExecutorFactory();

public static TaskExecutorFactory get() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been made public, allowing other implementations to reuse the code executing task as desired.

Signed-off-by: Francisco Javier Tirado Sarti <[email protected]>
@fjtirado fjtirado merged commit 6b758f9 into serverlessworkflow:main Nov 4, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add pattern and format check for Strings in one/any/allOf
2 participants