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

Nested schema dropdown with dependency reference #1981

Closed
wants to merge 9 commits into from

Conversation

dsuren1
Copy link

@dsuren1 dsuren1 commented Mar 11, 2025

Sample test subschema

{
  "cnr_sites": {
    "type": "array",
    "title": "Test nested schema",
    "minItems": 1,
    "items": {
      "type": "object",
      "properties": {
        "site": {
          "title": "site",
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            }
          },
          "ui:options": {
            "geonode-ui:autocomplete": "/api/v2/metadata/autocomplete/categories"
          }
        },
        "locations": {
          "title": "locations",
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "title": "cnr_location",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "ui:options": {
              "geonode-ui:referencevalue": "cnr_sites.[${index}].site.id",
              "geoode-ui:referencekey": "id",
              "geonode-ui:autocomplete": "/api/v2/metadata/autocomplete/categories?q=${id}"
            }
          }
        }
      }
    },
    "geonode:handler": "sparse"
  }
}

Behavior

dependency_nested.mp4

@dsuren1 dsuren1 self-assigned this Mar 11, 2025
@dsuren1 dsuren1 changed the title Nested schema dropdown wip to handle reference Nested schema dropdown with dependency reference Mar 11, 2025
@dsuren1 dsuren1 closed this Mar 18, 2025
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.

1 participant