zowe-cli icon indicating copy to clipboard operation
zowe-cli copied to clipboard

[next] ProfileInfo needs schema/meta files to exist

Open t1m0thyj opened this issue 3 years ago • 2 comments

In order for ProfileInfo to check for missing args, it requires schema files to exist for team config and meta files to exist for old school profiles. This requirement may be unavoidable, however there are a few concerns we may need to address:

  • How will these schema files be created for users of apps developed with the ProfileInfo API? Zowe CLI shouldn't be a requirement for bootstrapping a working team config environment.
  • How will these schema files be updated when a profile definition changes? This has been a problem in zowe-v1-lts CLI, e.g. when the --protocol option was added to z/OSMF profiles but was still missing from meta files.

t1m0thyj avatar Apr 13 '21 14:04 t1m0thyj

How will these schema files be created for users of apps developed with the ProfileInfo API?

I believe there is an updateSchema method that app developers can call whenever they get new profile information (like when an extension gets installed on VSCode and registers to Zowe Explorer). ⚠️ I believe we still have the problem of different applications possibly overriding each other's schemas though.

How will these schema files be updated when a profile definition changes?

That something we still need to figure out (for V3 maybe?)

zFernand0 avatar Mar 07 '23 14:03 zFernand0

The intention is for the profile info apis to work without schema.json file.

JTonda avatar Feb 14 '24 16:02 JTonda