-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
YAML schema does not match ak export_blueprint
#7789
Comments
The warnings happen due to the fact that YAML scheams don't know the value of any YAML tags, so this is sadly currently to be expected. I'm not aware of any YAML schema implementation that would correctly support this |
Would it work to define the fields as |
can you post a snippet of a segment that has this error? The field annotations should be correct as they're generated the same way the API schema is generated, which is directly from the database model (in most cases anyways) |
# yaml-language-server: $schema=https://version-2023-10.goauthentik.io/blueprints/schema.json
version: 1
entries:
- attrs:
base_dn: dc=cde-ev,dc=de
bind_cn: cn=admin,ou=duas,dc=cde-ev,dc=de
enabled: true
group_membership_field: uniqueMember
group_object_filter: (objectClass=groupOfUniqueNames)
name: CdEDB LDAP
object_uniqueness_field: ipaUniqueID
peer_certificate: 00c3af6b-be17-4b20-a0a1-9d0b10b7ed49
policy_engine_mode: any
property_mappings:
- 0ff968ba-4bad-4491-819b-0bf4c3b32d72
- cbe46010-46e7-4159-a61e-bf8760670972
- 40047e31-1cc4-4eaa-8d53-a88bb31fe380
- d60fedf2-55a5-4d72-b21f-d3ccdb399f29
- f2187f0b-da68-4f2e-b1fb-a107439d9a15
- c443f68e-b65c-412d-8047-1acafed906fb
property_mappings_group:
- c443f68e-b65c-412d-8047-1acafed906fb
server_uri: ldaps://ldap
slug: cdedb-ldap
sni: true
sync_groups: true
sync_users: true
user_matching_mode: identifier
user_object_filter: (objectClass=inetOrgPerson)
user_path_template: goauthentik.io/sources/%(slug)s
conditions: []
id: null
identifiers:
pk: 23b43253-98f3-4adc-a275-7900787a3ab6
model: authentik_sources_ldap.ldapsource
state: present |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I will have to see if anything changed in recent releases |
@septatrix This is fixed now when using |
Describe the bug
ak export_blueprint
provides blueprints with UUIDs in several places where the schema however expects integers.To Reproduce
ak export_blueprint
# yaml-language-server: $schema=https://version-2023-10.goauthentik.io/blueprints/schema.json
)Incorrect type. Expected "integer". yaml-schema: Property mappings
Expected behavior
The output generated by
ak export_blueprint
should match the structure expected by the schema (or vice versa).Version and Deployment (please complete the following information):
Additional context
Also some of the entries generated have a
null
id. Not sure if that is intended.The text was updated successfully, but these errors were encountered: