Skip to content

Conversation

@Ninoxe
Copy link
Contributor

@Ninoxe Ninoxe commented Dec 12, 2025

Proposed changes

  • Create a new model Reference used to link an object previously created to another entity

Related issues

Checklist

  • I consider the submitted work as finished
  • I have signed my commits using GPG key.
  • I tested the code for its functionality using different use cases
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

@Ninoxe Ninoxe self-assigned this Dec 12, 2025
@Ninoxe Ninoxe added filigran team use to identify PR from the Filigran team connectors-sdk labels Dec 12, 2025
@Ninoxe Ninoxe marked this pull request as ready for review December 15, 2025 16:28
description="The name of the author(s) of this note (e.g., the analyst(s) that created it).",
)
objects: list[BaseIdentifiedEntity] | None = Field(
objects: list[Union[BaseIdentifiedEntity, Reference]] | None = Field(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: for consistency purpose, could we use the pipe syntax instead of Union ?



class Reference(BaseModel):
"""Represent a reference."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate a bit more the use cases where a Reference should (or shouldn't) be used in the docstring?

Copy link
Member

@Powlinett Powlinett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Ninoxe

I notice that it misses the update of the following models:

  • AssociatedFile (markings)
  • BaseIdentifiedEntity (author and markings)

As the OCTI models fields now accept different types, it would be really nice to update their tests too (one test with a "complete" entity, one test with "just" a Reference) 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connectors-sdk filigran team use to identify PR from the Filigran team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants