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

Creating a new API Doc has "Specification source type" field required #116

Closed
cnovak opened this issue Dec 8, 2020 · 0 comments · Fixed by #118
Closed

Creating a new API Doc has "Specification source type" field required #116

cnovak opened this issue Dec 8, 2020 · 0 comments · Fixed by #118
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@cnovak
Copy link
Collaborator

cnovak commented Dec 8, 2020

Description

The API Doc has "Specification source type" field should not be required, and should not throw an error if the content is saved without selecting a "Specification source type"

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to Content > API Catalog
  2. Click on +Add API Doc
  3. Enter "Name"
  4. Note that the "Specification source type" is required
  5. Click "Save"

Actual Behavior

View error: Notice: Undefined offset: 0 in _apigee_api_catalog_form_node_form_validate() (line 197 of modules/contrib/apigee_api_catalog/apigee_api_catalog.module).

Expected Behavior

"Specification source type" should not be required, you should be able to create an API Doc without an attached OpenAPI specification.

Screenshots

Screen Shot 2020-12-07 at 7 37 09 PM

Screen Shot 2020-12-07 at 7 27 16 PM

Version Info

Version: 8.x-2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
2 participants