{"id":26711328,"url":"https://github.com/NDebx/Step-Function-Validator","last_synced_at":"2025-03-27T10:21:05.198Z","repository":{"id":43008444,"uuid":"463587591","full_name":"NDebx/Step-Function-Validator","owner":"NDebx","description":"Step Function Validator","archived":false,"fork":false,"pushed_at":"2022-03-23T16:08:05.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T07:38:46.473Z","etag":null,"topics":["aws","cloud","command-line","json","yaml","yaml-configuration"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/stepfunction-validator/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NDebx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-25T15:43:33.000Z","updated_at":"2022-03-22T21:06:30.000Z","dependencies_parsed_at":"2022-09-26T19:33:20.610Z","dependency_job_id":null,"html_url":"https://github.com/NDebx/Step-Function-Validator","commit_stats":null,"previous_names":["nileshdebix/step-function-validator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDebx%2FStep-Function-Validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDebx%2FStep-Function-Validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDebx%2FStep-Function-Validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NDebx%2FStep-Function-Validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NDebx","download_url":"https://codeload.github.com/NDebx/Step-Function-Validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245823316,"owners_count":20678173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cloud","command-line","json","yaml","yaml-configuration"],"created_at":"2025-03-27T10:21:04.383Z","updated_at":"2025-03-27T10:21:05.193Z","avatar_url":"https://github.com/NDebx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Step Function Validator for e.g. (AWS)\n\nAn issue we have is that we are quite human and we often make mistakes in the YAML \"code\". \nThese could be syntactical errors (for example, an incorrect indent), but also semantical (for example, forgetting to add a required parameter to a step). \nWe only find out about these errors in the last step of the CI/CD, when the step function fails to deploy to AWS. This makes troubleshooting very.. slow...\n\nSo we came up with this little tool. \n\n## Authors\n\n- [@b0tting](https://github.com/b0tting)\n- [@NileshDebix](https://github.com/NileshDebix)\n\n\n## Installation\n\n1. create virtual environment in python and activate this one in Terminal or CMD\n\n```python\n  python3 -m venv env\n  \n  Windows: \n    \n    env\\Script\\activate.bat\n\n  Mac/Linux:\n\n    source env/bin/activate\n```\n\n2. pip install the tool via pypi\n\n```python\n    ####################### [ NOTE !!! ] ############################################################\n    #    you NEED to see in your command line the env before your prompt\n    #    so you know that you are in your virtual environment:\n    #\n    #    example: (env) niels@Mac%\n    ################################################################################################\n\n    if above is clear then:\n\n    pip install stepfunction-validator or pip3 install stepfunction-validator # to install the required libraries and the tool\n\n```\n\n\n## Usage/Examples\n\n```python\n     stepfunction_validator.exe [-s test.yaml] [-j \u003cstepfunctions_schema.json\u003e] [--no-lint]    \n```\nThis will validate a YAML file against the schema you provided in the CLI. If the -c parameter is omitted, the script runs against every .yml file it can find in the current working directory. A default schema for AWS stepfunctions is included, but an overriding schema can be passed with the -j parameters. Skip linting with \"--no-lint\". If any linting, syntax or schema errors are found an exit code 1 will be returned with a list of errors found. Example output:\n``` \n.\\test\\step_function_invalid.yml:1:missing document start \"---\" (document-start)\n.\\test\\step_function_invalid.yml:1:no new line character at the end of file (new-line-at-end-of-file)\n.\\test\\step_function_invalid.yml:'Pass' is not one of ['Choice']. Failed validating enum in deque([0, 'properties', 'Type', 'enum']): {'type': 'string', 'enum': ['Choice']}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNDebx%2FStep-Function-Validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNDebx%2FStep-Function-Validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNDebx%2FStep-Function-Validator/lists"}