René's URL Explorer Experiment


Title: Question: OneOf · Issue #85 · JsonSchema-JavaUI/sf-java-ui · GitHub

Open Graph Title: Question: OneOf · Issue #85 · JsonSchema-JavaUI/sf-java-ui

X Title: Question: OneOf · Issue #85 · JsonSchema-JavaUI/sf-java-ui

Description: After the objects are serialized to JsonSchema, I need to add another field. BEFORE: { "schema": { "type": "object", "id": "urn:jsonschema:io:asfjava:ui:core:schema:Conditional", "properties": { "needColor": { "type": "boolean" }, "color...

Open Graph Description: After the objects are serialized to JsonSchema, I need to add another field. BEFORE: { "schema": { "type": "object", "id": "urn:jsonschema:io:asfjava:ui:core:schema:Conditional", "properties": { "n...

X Description: After the objects are serialized to JsonSchema, I need to add another field. BEFORE: { "schema": { "type": "object", "id": "urn:jsonschema:io:asfjava:ui...

Opengraph URL: https://github.com/JsonSchema-JavaUI/sf-java-ui/issues/85

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: OneOf","articleBody":"After the objects are serialized to JsonSchema, I need to add another field. \r\n\r\nBEFORE:\r\n\r\n    {\r\n      \"schema\": {\r\n        \"type\": \"object\",\r\n         \"id\": \"urn:jsonschema:io:asfjava:ui:core:schema:Conditional\",\r\n        \"properties\": {\r\n          \"needColor\": {\r\n            \"type\": \"boolean\"\r\n          },\r\n          \"color\": {\r\n            \"type\": \"string\",\r\n            \"title\": \"Color\"\r\n          },\r\n          \"length\": {\r\n            \"type\": \"string\",\r\n            \"title\": \"Length\"\r\n          }\r\n        }\r\n      },\r\n      \"form\": [\r\n        {\r\n          \"key\": \"length\"\r\n        },\r\n        {\r\n          \"key\": \"color\",\r\n          \"type\": \"select\",\r\n          \"autofocus\": false,\r\n          \"disabled\": false,\r\n          \"multiple\": false,\r\n          \"required\": false,\r\n          \"size\": 1,\r\n          \"titleMap\": [\r\n            {\r\n              \"name\": \"Red\",\r\n              \"value\": \"red\"\r\n            },\r\n            {\r\n              \"name\": \"Blue\",\r\n              \"value\": \"blue\"\r\n            }\r\n          ]\r\n        }\r\n      ]\r\n    }\r\n\r\nAFTER \r\n\r\n    {\r\n      \"schema\": {\r\n        \"type\": \"object\",\r\n        \"id\": \"urn:jsonschema:io:asfjava:ui:core:schema:Conditional\",\r\n        \"properties\": {\r\n          \"needColor\": {\r\n            \"type\": \"boolean\"\r\n          },\r\n          \"color\": {\r\n            \"type\": \"string\",\r\n            \"title\": \"Color\"\r\n          },\r\n          \"length\": {\r\n            \"type\": \"string\",\r\n            \"title\": \"Length\"\r\n          }\r\n        },\r\n        \"oneOf\": \r\n            [\r\n                {\r\n                    \"properties\": {\r\n                        \"needColor\": { \"enum\": [true] }\r\n                    },\r\n                    \"required\": [\"color\"]\r\n                },\r\n                {\r\n                    \"properties\": {\r\n                        \"needColor\": { \"enum\": [false] }\r\n                    },\r\n                    \"required\": [\"length\"]\r\n                }\r\n            ]\r\n      },\r\n      \"form\": [\r\n        {\r\n          \"key\": \"length\"\r\n        },\r\n        {\r\n          \"key\": \"color\",\r\n          \"type\": \"select\",\r\n          \"autofocus\": false,\r\n          \"disabled\": false,\r\n          \"multiple\": false,\r\n          \"required\": false,\r\n          \"size\": 1,\r\n          \"titleMap\": [\r\n            {\r\n              \"name\": \"Red\",\r\n              \"value\": \"red\"\r\n            },\r\n            {\r\n              \"name\": \"Blue\",\r\n              \"value\": \"blue\"\r\n            }\r\n           ]\r\n        }\r\n      ]\r\n    }\r\n\r\nI found the following example (https://github.com/FasterXML/jackson-module-jsonSchema/blob/master/src/main/java/com/fasterxml/jackson/module/jsonSchema/customProperties/TitleSchemaFactoryWrapper.java) of injecting a new property into a JsonSchema but it uses the schema.asSimpleTypeSchema().setTitle() method which is not the same thing as injecting a brand new property.\r\n\r\nThe oneOf field would allow me to do some conditional validation on the front end. Do you know of a way to do this? I understand it's a little outside the scope of the current project. Side note: I am generating this schema for https://angular2-json-schema-form.firebaseapp.com (as opposed to Angular Schema Form). Angular2 supports the same schema format which is why I can use sf-java-ui, but also has a limited implementation of oneOf.\r\n\r\n","author":{"url":"https://github.com/lbispham","@type":"Person","name":"lbispham"},"datePublished":"2018-03-14T16:09:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/85/sf-java-ui/issues/85"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4db8626a-2c0c-e1e2-6223-9b9a9e6f4aa7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9780:4D8F0:10BC1F7:1783AB2:698214E3
html-safe-noncec4277b35a4bdd96f96696a4ad6de006e552031c9839c1244875c97aaa919a053
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzgwOjREOEYwOjEwQkMxRjc6MTc4M0FCMjo2OTgyMTRFMyIsInZpc2l0b3JfaWQiOiIyMDk4Njc5MTI4OTMxODMzMDU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4e443a43e29708efd57edb5087ee0c418e3a7848460aa8ff07ced61d9c3833d8
hovercard-subject-tagissue:305226207
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JsonSchema-JavaUI/sf-java-ui/85/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6a1810cf4488b46ac13bfb7ebc4644e0ad78c193e57153c9e0c6f4861939cde6/JsonSchema-JavaUI/sf-java-ui/issues/85
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6a1810cf4488b46ac13bfb7ebc4644e0ad78c193e57153c9e0c6f4861939cde6/JsonSchema-JavaUI/sf-java-ui/issues/85
og:image:altAfter the objects are serialized to JsonSchema, I need to add another field. BEFORE: { "schema": { "type": "object", "id": "urn:jsonschema:io:asfjava:ui:core:schema:Conditional", "properties": { "n...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelbispham
hostnamegithub.com
expected-hostnamegithub.com
Nonec5d01132ac10b0b45b88f4c1c8790502d669eb065ff383dc5e4757c174f3380f
turbo-cache-controlno-preview
go-importgithub.com/JsonSchema-JavaUI/sf-java-ui git https://github.com/JsonSchema-JavaUI/sf-java-ui.git
octolytics-dimension-user_id28846876
octolytics-dimension-user_loginJsonSchema-JavaUI
octolytics-dimension-repository_id91987646
octolytics-dimension-repository_nwoJsonSchema-JavaUI/sf-java-ui
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id91987646
octolytics-dimension-repository_network_root_nwoJsonSchema-JavaUI/sf-java-ui
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0ac87bbde7c9f04b7ead5505c12f56048d89df09
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues/85#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FJsonSchema-JavaUI%2Fsf-java-ui%2Fissues%2F85
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FJsonSchema-JavaUI%2Fsf-java-ui%2Fissues%2F85
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JsonSchema-JavaUI%2Fsf-java-ui
Reloadhttps://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues/85
Reloadhttps://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues/85
Reloadhttps://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues/85
JsonSchema-JavaUI https://patch-diff.githubusercontent.com/JsonSchema-JavaUI
sf-java-uihttps://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FJsonSchema-JavaUI%2Fsf-java-ui
Fork 17 https://patch-diff.githubusercontent.com/login?return_to=%2FJsonSchema-JavaUI%2Fsf-java-ui
Star 24 https://patch-diff.githubusercontent.com/login?return_to=%2FJsonSchema-JavaUI%2Fsf-java-ui
Code https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui
Issues 12 https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues
Pull requests 1 https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/pulls
Actions https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/actions
Projects 0 https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/projects
Wiki https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/wiki
Security 0 https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/security
Insights https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/pulse
Code https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui
Issues https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues
Pull requests https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/pulls
Actions https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/actions
Projects https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/projects
Wiki https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/wiki
Security https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/security
Insights https://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/JsonSchema-JavaUI/sf-java-ui/issues/85
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/JsonSchema-JavaUI/sf-java-ui/issues/85
Question: OneOfhttps://patch-diff.githubusercontent.com/JsonSchema-JavaUI/sf-java-ui/issues/85#top
https://github.com/lbispham
https://github.com/lbispham
lbisphamhttps://github.com/lbispham
on Mar 14, 2018https://github.com/JsonSchema-JavaUI/sf-java-ui/issues/85#issue-305226207
https://github.com/FasterXML/jackson-module-jsonSchema/blob/master/src/main/java/com/fasterxml/jackson/module/jsonSchema/customProperties/TitleSchemaFactoryWrapper.javahttps://github.com/FasterXML/jackson-module-jsonSchema/blob/master/src/main/java/com/fasterxml/jackson/module/jsonSchema/customProperties/TitleSchemaFactoryWrapper.java
https://angular2-json-schema-form.firebaseapp.comhttps://angular2-json-schema-form.firebaseapp.com
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.