Skip to content

Conversation

@lakshmi-kannan
Copy link
Contributor

@lakshmi-kannan lakshmi-kannan commented Apr 24, 2017

Output

(virtualenv)vagrant@st2dev /m/s/s/st2 ❯❯❯ make .lint-api-spec                                            feature/lint_openapi_spec ✭ ✱ ◼

================== Lint API spec ====================

st2common/bin/st2-validate-api-spec --generate
2017-05-03 16:36:20,105 ERROR [-] API model field "x-api-model" not defined for definition "TokenValidationRequest".
2017-05-03 16:36:20,107 ERROR [-] API model field "x-api-model" not defined for definition "PolicyCreate".
2017-05-03 16:36:20,107 ERROR [-] API model field "x-api-model" not defined for definition "PacksRegister".
2017-05-03 16:36:20,108 ERROR [-] API model field "x-api-model" not defined for definition "TriggerRequest".
2017-05-03 16:36:20,109 ERROR [-] API model field "x-api-model" not defined for definition "PolicyTypeList".
2017-05-03 16:36:20,110 ERROR [-] API model field "x-api-model" not defined for definition "SensorType".
2017-05-03 16:36:20,110 ERROR [-] API model field "x-api-model" not defined for definition "Trigger".
2017-05-03 16:36:20,111 ERROR [-] API model field "x-api-model" not defined for definition "KeyValuePair".
2017-05-03 16:36:20,111 ERROR [-] API model field "x-api-model" not defined for definition "PacksContentRegisterType".
2017-05-03 16:36:20,114 ERROR [-] API model field "x-api-model" not defined for definition "TracesList".
2017-05-03 16:36:20,114 ERROR [-] API model field "x-api-model" not defined for definition "TriggerTypeRequest".
2017-05-03 16:36:20,115 ERROR [-] API model field "x-api-model" not defined for definition "PacksList".
2017-05-03 16:36:20,116 ERROR [-] API model field "x-api-model" not defined for definition "AliasExecution".
2017-05-03 16:36:20,116 ERROR [-] API model field "x-api-model" not defined for definition "RuleType".
2017-05-03 16:36:20,117 ERROR [-] API model field "x-api-model" not defined for definition "PacksInstall".
2017-05-03 16:36:20,119 ERROR [-] API model field "x-api-model" not defined for definition "RunnerType".
2017-05-03 16:36:20,120 ERROR [-] API model field "x-api-model" not defined for definition "ActionAliasMatchRequest".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "ActionParametersSubSchema".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "ActionAliasRequest".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "Webhook".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "PacksUninstall".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "WebhookBody".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "TriggerInstance".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "TokenValidationResult".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "LiveAction".
2017-05-03 16:36:20,121 ERROR [-] API model field "x-api-model" not defined for definition "PackConfig".
2017-05-03 16:36:20,122 ERROR [-] API model field "x-api-model" not defined for definition "ActionAliasHelp".
2017-05-03 16:36:20,124 ERROR [-] API model field "x-api-model" not defined for definition "PacksSearchShow".
2017-05-03 16:36:20,124 ERROR [-] API model field "x-api-model" not defined for definition "NotificationPropertySubSchema".
2017-05-03 16:36:20,125 ERROR [-] API model field "x-api-model" not defined for definition "RuleEnforcementsList".
2017-05-03 16:36:20,126 ERROR [-] API model field "x-api-model" not defined for definition "PackIndex".
2017-05-03 16:36:20,126 ERROR [-] API model field "x-api-model" not defined for definition "ActionAliasMatch".
2017-05-03 16:36:20,126 ERROR [-] API model field "x-api-model" not defined for definition "ValidationError".
2017-05-03 16:36:20,127 ERROR [-] API model field "x-api-model" not defined for definition "TimersList".
2017-05-03 16:36:20,127 ERROR [-] API model field "x-api-model" not defined for definition "PackView".
2017-05-03 16:36:20,129 ERROR [-] API model field "x-api-model" not defined for definition "Token".
2017-05-03 16:36:20,130 ERROR [-] API model field "x-api-model" not defined for definition "DataFilesSubSchema".
2017-05-03 16:36:20,130 ERROR [-] API model field "x-api-model" not defined for definition "Error".
2017-05-03 16:36:20,130 ERROR [-] API model field "x-api-model" not defined for definition "TokenRequest".
2017-05-03 16:36:20,131 ERROR [-] API model field "x-api-model" not defined for definition "KeyValuePairRequest".
2017-05-03 16:36:20,132 ERROR [-] API model field "x-api-model" not defined for definition "ExecutionFilters".
2017-05-03 16:36:20,132 ERROR [-] API model field "x-api-model" not defined for definition "PolicyList".
2017-05-03 16:36:20,132 ERROR [-] API model field "x-api-model" not defined for definition "Execution".
2017-05-03 16:36:20,133 ERROR [-] API model field "x-api-model" not defined for definition "PackConfigCreate".
2017-05-03 16:36:20,134 ERROR [-] API model field "x-api-model" not defined for definition "ActionParameters".
2017-05-03 16:36:20,134 ERROR [-] API model field "x-api-model" not defined for definition "TriggerType".
2017-05-03 16:36:20,134 ERROR [-] API model field "x-api-model" not defined for definition "ExecutionRequest".
2017-05-03 16:36:20,134 ERROR [-] API model field "x-api-model" not defined for definition "PackConfigView".
2017-05-03 16:36:20,134 ERROR [-] API model field "x-api-model" not defined for definition "PackConfigContent".
make: *** [.lint-api-spec] Error 1
(virtualenv)vagrant@st2dev /m/s/s/st2 ❯❯❯

status:
description: The current status of the action execution.
type: string
enum: {{ LIVEACTION_STATUSES }}
Copy link
Member

Choose a reason for hiding this comment

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

To confirm - this file is automatically generated based on .j2 definition on make target and build?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't hooked up a make target yet. I plan to do that.

@Kami
Copy link
Member

Kami commented Apr 28, 2017

So far LGTM 👍

Can you please gist the sample output?

@Kami
Copy link
Member

Kami commented May 4, 2017

LGTM for now once the tests pass.

Next step will be fixing / addressing all the errors :P

Lakshmi Kannan added 2 commits June 9, 2017 15:00
* master: (208 commits)
  adding bug fix to the end of changelog message
  Adding changelog entry
  Adding simple test
  Adding percent parsing and various debug messages
  Lint and unit tests fixes
  Enable trigger parameters validation check
  Change sleep time for the worker shutdown test
  Name is required, ref is optional
  Trigger and TriggerType models should have ref field
  Revert unneeded changes
  Cleanup log changes
  Log debug rule query
  Revert back trigger to StringField in trigger instance
  Fix duplicate remove from running liveactions set
  Checkpoint #3
  Checkpoint #2
  Checkpoint
  Minor fix to mistral itests
  action raises ValueError for unknown uuid type. Fixes test and added enum to meta
  Fix style - use 4 spaces for a tab, throw instead of returning false.
  ...
@lakshmi-kannan
Copy link
Contributor Author

Closing. Opened #3462 instead.

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.

2 participants