You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this plugin is a WIP hence I would like to give some recommendations on the structure built so far. This would help in faster development and ensure we follow our best practices:
The following suggestions are to make the plugin build process easier and faster.
Some of the suggestions may not be directly from your code but related to general norms practiced across Steampipe.
Is the plugin name correct? Any reference source you have taken suggestion from?
oapigen.spc
Could you please update the oapigen.spc file to follow the format of the namecheap plugin
We should mention the authentication parameters however commented out and the values should be in the format of the actual values (however incorrect)
We also add details to set these parameters via the environment variable
oapigen*
The basic structure of the table is quite different than what we follow, any specific reason why we deviated?
Since this plugin is a WIP and you only have the first table we would like to give some suggestions on the naming convention:
The name of the table functions should include the plugin name in it and it should be in singular form, for example, tableOpenAPIGenDocument
We should have a table name and a table description as used in the namecheap plugin
Table names should be singular for example oapigen_document
Each column should have a description that should be a meaningful sentence that illuminates the purpose of the column. It should end with a . period. For example The name of the document.
We should add the standard steampipe column > title that should be a transform of the name column or the id column if the name is not present
The naming of the list and hydrate functions should be as follows:
list function > listDocuments
hydrate function > getDocument
There should be a logger error message for each error encountered like connection_error or api_error pointing to the respective tables and functions
For instance >
Thanks @lyda for this new plugin. Great work 🎉 !!
I think this plugin is a WIP hence I would like to give some recommendations on the structure built so far. This would help in faster development and ensure we follow our best practices:
The following suggestions are to make the plugin build process easier and faster.
Some of the suggestions may not be directly from your code but related to general norms practiced across Steampipe.
Is the plugin name correct? Any reference source you have taken suggestion from?
oapigen.spc
oapigen.spc
file to follow the format of the namecheap pluginoapigen*
tableOpenAPIGenDocument
oapigen_document
.
period. For exampleThe name of the document.
title
that should be a transform of thename
column or theid
column if the name is not presentlistDocuments
getDocument
connection_error
orapi_error
pointing to the respective tables and functionsFor instance >
mod.go
utils.go
,service.go
andconnection_config.go
docs/tables*
*
this improves visibility and makes the query output clean.YOUR_DOCUMENT_ID
docs/index.md
oapigen.spc
fileREADME.md
It is incomplete, I guess it is still WIP.
For reference, we can follow the namecheap plugin
Please make sure the configuration details are in sync with the updated
oapigen.spc
fileA couple of follow-up questions:
Please let us know if you have questions, happy to help 👍
The text was updated successfully, but these errors were encountered: