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

Unable to use field_api_product in apigee maven smartdoc plugin #856

Closed
OShaikhDevOps opened this issue Jun 12, 2023 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@OShaikhDevOps
Copy link

OShaikhDevOps commented Jun 12, 2023

Version:
apigee-smartdocs-maven-plugin-2.2.3
Config File:

pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
            <groupId>apigee</groupId>
            <artifactId>parent-pom</artifactId>
            <version>1.0</version>
            <relativePath>shared-pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <groupId>Apigee</groupId>
    <artifactId>DeveloperPortal</artifactId>
    <version>1.0</version>
    <name>DeveloperPortal</name>
    <packaging>pom</packaging>
    <profiles>
    <profile>
        <id>dev</id>
        <properties>
        	<portal.url>${purl}</portal.url><!-- URL of the developer portal. -->
        	<portal.username>${pusername}</portal.username><!-- Username for the developer portal. -->
        	<portal.password>${ppassword}</portal.password><!-- Password for the developer portal. -->
        	<portal.format>yaml</portal.format><!-- Format of the OpenAPI specs. json|yaml -->
        	<portal.api.doc.format>basic_html</portal.api.doc.format><!-- Format in the portal. Values: basic_html, restricted_html, full_html -->
        	<portal.directory>./specs</portal.directory> <!-- Directory where OpenAPI specs are accessible. Using ./specs for sample -->
        	<apigee.smartdocs.config.file>./apicatalog-config.json</apigee.smartdocs.config.file> <!-- Config for fields -->
        </properties>
    </profile>
</profiles>
</project>

Command Execution:
mvn install -Pdev -Dpurl="https://example.com/" -Dpusername="xyz" -Dppassword="xyz" -Dapigee.smartdocs.config.options=create

Error Code:

[ERROR] Failed to execute goal com.apigee.smartdocs.config:apigee-smartdocs-maven-plugin:2.2.3:apidoc (smartdocs-deploy) on project DeveloperPortal: Execution smartdocs-deploy of goal com.apigee.smartdocs.config:apigee-smartdocs-maven-plugin:2.2.3:apidoc failed: Update failure:
[ERROR] Status code: 422
[ERROR] Status Message: Unprocessable Entity
[ERROR] Detailed Message: The following relationship fields were provided as attributes: [ field_api_product ]
@OShaikhDevOps OShaikhDevOps added the enhancement New feature or request label Jun 12, 2023
@shishir-intelli
Copy link
Collaborator

@osmanshaikhSystemsltd ,
This issue is being tracked in #878,
Created PR #879 to fix the field_api_product issue for Drupal portal.

Closing this issue now, duplicate of #878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants